ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

Search on term id with exact match returns irrelevant results #57

Closed mdorf closed 4 years ago

mdorf commented 5 years ago

Example: http://data.bioontology.org/search?q=http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F123037004&require_exact_match=true

The Cause: With the introduction of the subtree search enhancements, a new field has been created in the search index, called "parents", which stores all the ascendants of a given class. Unfortunately, the side effect of this change is that a given term id now appears multiple times in many of the classes that are direct or indirect children of the given term. This bug affects only the searches by the term id. The exact pref label and synonym searches are unaffected.

mdorf commented 4 years ago

resolved