Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas Search
Created by Guest
Created on Jul 5, 2024

Ability to choose what to dynamically index

When using dynamic mapping, it would be useful for better control on the index to allow choosing which index types are created. Exemple: dynamic: true // Map all fields dynamic: false // Don't use dynamic mapping dynamic: ["string","bool"] // Only use dynamic mapping to create string indexes and boolean indexes Also, why can't Token indexes be indexes dynamically? I assume it's to avoid making the index too big, but I think it should be allowed optionally to facilitate sorting and filtering on string fields that may not be known at the moment of creating the index.