Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7558

COMPASS: Update the search index template

    • Type: Icon: Story Story
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Developer Tools

      Compass Search Index Template should be updated to reflect that token field mapping types can now be used for searching (and not just sorting capabilities).

      PD: Product Description: Token for unanalyzed text search

       

      Template: Text field mappings

      ```

      {

        "mappings": {

          "dynamic": true,

          "fields": {

            <string field name>: [

              

      {           // Enables text queries           "type": "string"         }

      ,

              

      {           // Enables autocomplete queries           "type": "autocomplete"                    }

      ,

              

      {           ++ Enables equals, in and range queries and sorting           -- Enables sorting           "type": "token"         }

            ]  

          } 

        }

      }

      ```

            Assignee:
            Unassigned Unassigned
            Reporter:
            sara.akram@mongodb.com Sara Akram (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: