I am trying to implement a search engine for my recipes-website using mongo db. I am trying to display the search suggestions in type-ahead widget box to the users.
I a
The best case for it would be using elasticsearch fuzzy query: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html
It supports levenshtein distance algorithm out of the box and has additional features which can be useful for your requirements i.e.: - more like this - powerful facets / aggregations - autocomplete