greenelab / adage-backend

The backend for Adage web app
https://adage.greenelab.com
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

"Experiment" autocomplete search: Use substr on `name` and `description` fields #42

Closed dongbohu closed 4 years ago

dongbohu commented 4 years ago

This PR uses substr search on name and description fields in the Experiment autocomplete search API, because trigram searches on name and description fields don't work very well when name and/or description fields in an experiment is a long string. (The trigram similarity score depends not only on the number of matched trigrams but also on the original string's length.)