Mongodb atlas autocomplete

How to search for similar char inside a string, such as Avenger and Scavenger
ex:-
Avenger will return both History and story
History will return History

For this type of search you should look at the autocomplete docs. I think you’ll want to choose the nGram tokenization in order to be able to find partial text within the word being indexed.

1 Like