$search aggregation pipeline stage performs a full-text search of the field or fields in an Atlas collection. The fields must be covered by a MongoDB Search index.
For example, you can use $search to perform the following types of operations:
Searches to match text fields with various patterns.
Coincidencias difusas para encontrar términos con variaciones ortográficas.
Compound queries to combine multiple search conditions.
Relevance scoring to rank results.
Return snippets of matching text.
Vector searches to find documents using vector similarities.
For more details, see:
Index Definitions to learn more about creating and managing MongoDB Search indexes.
MongoDB Search etapas del pipeline de agregación para obtener más información sobre la sintaxis y el uso de la etapa del pipeline
$search.$search Operators to learn more about the
$searchaggregation pipeline stage operators.