Reputation: 389
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?
Upvotes: 1
Views: 120
Reputation: 47
mapper_parsing_exception says that it is not able to parse
suppose if you are writing in python false --> False
data = "tags": { "type": "completion", "index": False }
send this in request as json json.loads(data)
Upvotes: 0
Reputation: 217474
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:
Upvotes: 2