Mongodb Indexes

Does Mongo create additional index for $search(autocomplete)?
If i have already indexed field lets call it FirstName, and if i would like to create a search index for the field, would mongo use the alerady created index or will it create one more index for the same field for searching purpose?
If so are both of the indexes kept in the ram memory on the same machine?

Hi @Bojan_Despotoski, the only index necessary to run $search is an Atlas Search index. You can use one Search index to index as many fields as you’d like using static mappings.

When using this, any other MongoDB index is likely unnecessary, as they are used for a different goal.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.