warelab / gramene-solr

Apache License 2.0
0 stars 0 forks source link

descriptions of annotations are not indexed #5

Closed ajo2995 closed 8 years ago

ajo2995 commented 8 years ago

The default search for "Carboxypeptidase" returns no results in oryza sativa japonica because none of the index fields contain the word. See http://www.warelab.org/bugs/view.php?id=5363

However, the term is present in the mongo docs in the annotations subdoc. For example OS04G0176400 has it in annotations.domains.entries[0].description. http://data.gramene.org/v50/genes?wt=json&idList=OS04G0176400&bedFeature=gene&bedCombiner=canonical

Proposed solution: Add another multivalued text field to the solr document called annotations that gets copied along with description, name, etc into the text field used for full text search.