Search code examples
elasticsearchelasticsearch-mapping

How to not store the completion suggester in the index in Elasticsearch


I want to have a field tags as completion, and I do not want this field to participate in the scoring, so I am trying to apply the mapping

"tags": {
    "type": "completion",
    "index": false
}

And I am getting an error

ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=Mapping definition for [tags] has unsupported parameters:  [index : false]]]

How should be the mapping?


Solution

  • The completion type stores the data in a different way in a finite state transducer (FST) data structure and not in the inverted index.

    You can find more information about the completion suggester here: