I’m also attempting to build this functionality on top of Atlas Search.
Most of my index fields are autocomplete, however, autocomplete appears to be incompatible with phrase. (See https://www.mongodb.com/community/forums/t/phrase-searches-dont-work-for-autocomplete-fields/146749) Making the field type: "string" in the index allows for exact searching but causes another issue, which is that I want my field to be both searchable as an autocomplete (fuzzy) and as an exact match (double quotes).
So as an example, let’s say the field is called tags, and I’ve got a document where tags is Horror, Film Noir, Dark. I’d like my users to be able to find this document by searching with "Film Noir" (with double quotes) but also by fuzzy-searching by something with typos, such as Fiml Nior.
But also I want them to find the document with a search like "Film Noir" Dakr (exact match + fuzzy on the same field).
So @Marcus (or anyone else), is there some way to index a field as both autocomplete and as a string? Or is there a better way to do this?
Right now it seems I have to choose one or the other for a given field, and in my case I want almost all of my collection’s fields to be searchable as exact matches AND fuzzily, depending on whether quoted phrases/words are included (like Google Search).
Thank you!