java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.document.SpatialQuery
org.apache.lucene.document.XYShapeQuery
Finds all previously indexed cartesian shapes that comply the given
ShapeField.QueryRelation with
the specified array of XYGeometry.
The field must be indexed using XYShape.createIndexableFields(java.lang.String, org.apache.lucene.geo.XYPolygon) added per document.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.document.SpatialQuery
SpatialQuery.EncodedRectangle, SpatialQuery.SpatialVisitor -
Field Summary
Fields inherited from class org.apache.lucene.document.SpatialQuery
field, geometries, queryComponent2D, queryRelation -
Constructor Summary
ConstructorsConstructorDescriptionXYShapeQuery(String field, ShapeField.QueryRelation queryRelation, XYGeometry... geometries) Creates a query that matches all indexed shapes to the provided polygons -
Method Summary
Modifier and TypeMethodDescriptionprotected Component2DcreateComponent2D(Geometry... geometries) protected SpatialQuery.SpatialVisitorreturns the spatial visitor to be used for this query.(package private) static SpatialQuery.SpatialVisitorgetSpatialVisitor(Component2D component2D) Methods inherited from class org.apache.lucene.document.SpatialQuery
createWeight, equals, equalsTo, getField, getQueryRelation, getScorerSupplier, hashCode, queryIsCacheable, toString, transposeRelation, visit
-
Constructor Details
-
XYShapeQuery
XYShapeQuery(String field, ShapeField.QueryRelation queryRelation, XYGeometry... geometries) Creates a query that matches all indexed shapes to the provided polygons
-
-
Method Details
-
createComponent2D
- Specified by:
createComponent2Din classSpatialQuery
-
getSpatialVisitor
-
getSpatialVisitor
Description copied from class:SpatialQueryreturns the spatial visitor to be used for this query. Called before generating the queryWeight- Specified by:
getSpatialVisitorin classSpatialQuery
-