Uploaded image for project: 'PhenoTips'
  1. PT-3020 Vocabulary types
  2. PT-3030

Modify DefaultVocabularyManager to support searching in vocabulary categories

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects versions: None
    • Fix versions: 1.4-milestone-1
    • Components: None
    • Labels:
      None
    • Sprint:

      Description

      1. Add a Map<String, Set<Vocabulary>> vocabulariesByCategory field
      2. During initialize(), ask each vocabulary for the supported categories and populate vocabulariesByCategory
      3. implement search by:
        1. getting all the vocabularies for the requested category
        2. searching in them
        3. joining all the terms in a list
        4. order the list by each term's score field(it's not exposed, but you can call {{term.get("score") to check if a score is available), descending
        5. trim the list to the top maxResults
        6. return it

        Attachments

          Activity

            People

            • Assignee:
              alina Alina Gvo
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: