biothings / discovery-app

The Data Discovery Engine project by the CD2H Data working-group
http://discovery.biothings.io
Apache License 2.0
4 stars 12 forks source link

[Improvement] Improve sort order for datasets in the registry #189

Open flaneuse opened 2 years ago

flaneuse commented 2 years ago

Is your feature request related to a problem? Please describe. The default sort order for the registry seems off. If I search for the name of a particular dataset (e.g. Mouse cortex lipidome response to West Nile Virus), I would expect the dataset that contains that exact phrase to be the top result. Instead, it's buried at the bottom.

Describe the solution you'd like Are you sorting by _score? It seems like this result should be listed first. You might also consider changing the default search behavior to combine terms by AND rather than OR.

Screen Shot 2022-09-12 at 5 20 27 PM