percolator: Use QueryBuilder.rewriteQuery(...) to rewrite query builder instead of QueryBuilder.rewrite(...)
Relates to #24617
This commit is contained in:
parent
086abe6216
commit
08eda43899
|
@ -282,7 +282,7 @@ public class PercolatorFieldMapper extends FieldMapper {
|
|||
);
|
||||
verifyQuery(queryBuilder);
|
||||
// Fetching of terms, shapes and indexed scripts happen during this rewrite:
|
||||
queryBuilder = queryBuilder.rewrite(queryShardContext);
|
||||
queryBuilder = QueryBuilder.rewriteQuery(queryBuilder, queryShardContext);
|
||||
|
||||
try (XContentBuilder builder = XContentFactory.contentBuilder(QUERY_BUILDER_CONTENT_TYPE)) {
|
||||
queryBuilder.toXContent(builder, new MapParams(Collections.emptyMap()));
|
||||
|
|
Loading…
Reference in New Issue