elastic/elasticsearch

Add ingest processor to percolator that rewrites queries

Open

#29,053 opened on Mar 14, 2018

View on GitHub
 (4 comments) (1 reaction) (0 assignees)Java (76,700 stars) (25,882 forks)batch import
:Search Relevance/Percolator>bugTeam:Search Relevancehelp wantedpriority:normal

Description

Follow up from #17071

The percolator needs a ingest processor that performs the QueryBuilder rewrite. At the moment the query builder rewrite happens in the PercolatorFieldMapper which means each shard copy performs this rewrite. Most of the time this isn't a problem, but in the case that a query builder does a remote fetch (geo_shape query using indexed shape) there is a chance that the query builder rewrite that each shard copy forms fetch slightly different values.

Contributor guide