Hello, I just upgraded from version 1.4.4 to 2.3.3 and I'm having an issue with the percolator:
Before, we used to send the percolator requests using the _mpercolate endpoint for an existing document as follows:
curl -XGET 'localhost:9200/_mpercolate' -d '
{"percolate":{"id":"myid_123456","index":"week_29","percolate_index":"my_percolator_index","type":"article"}}
{}
'
Where the article with ID "myid_123456" was indexed on index "week_29" and has many attributes as part of the document. The percolator index, "my_percolator_index" only has a query to match two of the fields in the article document:
{
"_index": "my_percolator_index",
"_type": ".percolator",
"_id": "897987987",
"_version": 1,
"_score": 1,
"_source": {
"query": {
"bool": {
"must": {
"query_string": {
"query": "+(title:Obama body:Obama) +(title:Clinton body:Clinton)"
}
}
}
},
"unique_query_name": "candidates",
"unique_query_id": 512508281
}
}
The response in 1.4.4 was successful, returning the ID of the percolator query that match the document if title or body has a match. However, in 2.3.3 the response throws an error for any other field in the document that does not have a analyzer in the mapping, which for us is not needed:
{
"responses": [
{
"took": 9,
"_shards": {
"total": 2,
"successful": 0,
"failed": 2,
"failures": [
{
"shard": 0,
"index": "my_percolator_index",
"status": "INTERNAL_SERVER_ERROR",
"reason": {
"type": "exception",
"reason": "Failed to create token stream for [author]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Field [author] has no associated analyzer"
}
}
}
]
},
"total": 0,
"matches": [
]
}
]
}
Can I get some help on solving this issue without having to add every field to the mapping template?
Thanks a lot!
Javier C.