tvolk131 / fdr-finder

0 stars 0 forks source link

Replace Sonic with Elasticsearch #19

Closed tvolk131 closed 3 years ago

tvolk131 commented 3 years ago

I chose Sonic as the search backend because of its simplicity and low resource usage. However, while the search results it provides are adequate, its autocomplete functionality is not. As far as I can tell, autocomplete suggestions can't operate on more than one word, meaning that suggestions are unable to use the context of the entire search term as the user is typing. Elasticsearch would fix this problem with the use of a phrase suggestor. Let's swap out Sonic in favor of Elasticsearch for the search backend.

tvolk131 commented 3 years ago

After doing some investigating, I discovered Meilisearch. This could be a good alternative to Elasticsearch, since it claims to have the ability to show rank-ordered and context-aware results. However, it currently does not support autocomplete suggestions, so if we used it for search then we'd still probably want to use Elasticsearch for autocomplete results, which makes it a less appealing option. Still, worth considering since it is much simpler to setup than Elasticsearch would be.

tvolk131 commented 3 years ago

Finished in https://github.com/tvolk131/fdr-finder/commit/f39612daf40038e401ee5b863eedab26c7b9bbae. I decided to move forward with Meilisearch.