I am evaluating full-text search on Atlas. I need to know that MongoDB Atlas supports partial matching. I created a database on the free tier and the search index config appears in the console. I created an index as per the instructions. I need to confirm that if a field has “text” and I search for “text” that there is a match. I also need to confirm that it is using the Lucene engine.
I can do searches but partial match does not work. I.e. searching for “text” yields a result, but “tex” yields nothig. I then saw this article and now I’m wondering if the free tier supports partial matching. Does it?
I tried creating a serverless instance but there is no config for searching there at all.
So, is it possible to do partial text matching on searches on the free tier? If not, what do I need to do to see this functionality? Which minimum level tier do I need?
Alternatively, is there a MongoDB docker image I can use that comes with Lucene search?
Perhaps I need the autocomplete operator? If so, how would I even do an autocomplete query through the portal? Do you I need to use the API client SDK for that?
Beware !!!
Using this appraoch seems good. But it puts way too high load on your servers, CPU exhaustion, memory exhaustion becomes frequent if you have a decent amount of data.
Only index the fields you need and write the aggregation in a way which you think would actually be used.
For your use case :