🚀 Hint: Atlas Search Indexes—Unleash the Power

Want lightning-fast, full-text search in your app? Atlas Search indexes are your secret weapon!
Craft custom search experiences with flexible analyzers, smart field mappings, and powerful faceting.

✨ Example: Next-Level Index Definition

{
  "analyzer": "lucene.english",
  "searchAnalyzer": "lucene.english",
  "mappings": {
    "dynamic": false,
    "fields": {
      "amenities": [
        { "type": "stringFacet" },
        { "type": "token" }
      ],
      "beds": [
        { "type": "numberFacet" },
        { "type": "number" }
      ],
      "name": {
        "analyzer": "lucene.english",
        "foldDiacritics": false,
        "maxGrams": 7,
        "minGrams": 3,
        "type": "autocomplete"
      },
      "property_type": [
        { "type": "stringFacet" },
        { "type": "token" }
      ]
    }
  }
}

💡 Mix and match field types, analyzers, and facets to create search that feels magical!