Geo: fix geo query decomposition (#44924)

The recent refactoring introduced an issue where queries where not
going through the decomposition processing.

Fixes #44891
This commit is contained in:
Igor Motov 2019-07-29 11:46:53 -04:00
parent 9dd527328a
commit b6cef227a5
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class VectorGeoShapeQueryProcessor implements AbstractGeometryFieldMapper
if (processedShape == null) {
return new MatchNoDocsQuery();
}
return queryShape.visit(new ShapeVisitor(context, fieldName, relation));
return processedShape.visit(new ShapeVisitor(context, fieldName, relation));
}
private class ShapeVisitor implements GeometryVisitor<Query, RuntimeException> {