Percolator with groovy script fails when doc_values are enabled #13242
Labels
>bug
help wanted
adoptme
:Search Relevance/Percolator
Reverse search: find queries that match a document
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Tested on Elasticsearch 1.7.1.
Prepare the mapping and percolator as follows:
This script tests for a match, it keeps looping silently as long as the expected result arrives. When an unexpected result arrives it's printed and the loop terminates:
Unfortunately the script fails instantly.
Elasticsearch logs the following stacktrace
This issue does not occur when the line
"doc_values": true
is not included in the mapping (it defaults to false in elasticsearch 1.7.1).What perhaps is worse, if that the wrong result (no result) is returned when the percolator script is changed to
"doc[\"name\"].value == \"a\""
.I discovered this issue because we use the workaround mentioned in #8879 to avoid percolator concurrency issues. Since elasticsearch uses doc_values by default, we were investigating what the performance inpact is of using docvalues, however we discovered this unexpected problem.
The text was updated successfully, but these errors were encountered: