ols4
ols4 copied to clipboard
Misleading results for the OLS search, select and entity API
Describe the bug
When I use the APIs of OLS4 with search functionality I get misleading results. This issue is relevant to the select, search and entities API. In order not to make the problem unnecessarily complex, I will only focus on the select API.
To Reproduce Steps to reproduce the behavior:
- Go to the select API with the value diabetes mellitus and the ontology snomed
- Have a look to the results of the response.
- See misleading results for diabetes mellitus
Expected behavior
I would expect that diabetes mellitus would be the first item in the response list. In contrast I getting a very specific subclass with the label Diabetes mellitus associated with hormonal etiology (disorder).
Screenshots
The search term
diabetes mellitus is only on the second position of the response.
Additional context
When I entering diabetes mellitus and set a filter to the ontology snomed the requested term is only on the fourth position for the entities API which is used by the OLS frontend. This is again just one example to reduce the complexity. I could show you hundreds of those. It could be related to: #859
Visualization of the Entities API via the OLS search.
And only on the second position for the select API:
Visualization of the Select API via the TSS autocomplete widget.