Package org.apache.lucene.document
Class LatLonShapeBoundingBoxQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.document.SpatialQuery
org.apache.lucene.document.LatLonShapeBoundingBoxQuery
Finds all previously indexed geo shapes that intersect the specified bounding box.
The field must be indexed using LatLonShape.createIndexableFields(java.lang.String, org.apache.lucene.geo.Polygon)
added per document.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Holds spatial logic for a bounding box that works in the encoded spaceNested classes/interfaces inherited from class org.apache.lucene.document.SpatialQuery
SpatialQuery.SpatialVisitor
-
Field Summary
FieldsFields inherited from class org.apache.lucene.document.SpatialQuery
field, queryRelation
-
Constructor Summary
ConstructorsConstructorDescriptionLatLonShapeBoundingBoxQuery
(String field, ShapeField.QueryRelation queryRelation, Rectangle rectangle) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
class specific equals checkprotected SpatialQuery.SpatialVisitor
returns the spatial visitor to be used for this query.int
hashCode()
Override and implement query hash code properly in a subclass.Prints a query to a string, withfield
assumed to be the default field and omitted.Methods inherited from class org.apache.lucene.document.SpatialQuery
createWeight, equals, getField, getQueryRelation, transposeRelation, visit
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Field Details
-
rectangle
-
-
Constructor Details
-
LatLonShapeBoundingBoxQuery
LatLonShapeBoundingBoxQuery(String field, ShapeField.QueryRelation queryRelation, Rectangle rectangle)
-
-
Method Details
-
getSpatialVisitor
Description copied from class:SpatialQuery
returns the spatial visitor to be used for this query. Called before generating the queryWeight
- Specified by:
getSpatialVisitor
in classSpatialQuery
-
equalsTo
Description copied from class:SpatialQuery
class specific equals check- Overrides:
equalsTo
in classSpatialQuery
-
hashCode
public int hashCode()Description copied from class:Query
Override and implement query hash code properly in a subclass. This is required so thatQueryCache
works properly.- Overrides:
hashCode
in classSpatialQuery
- See Also:
-
toString
Description copied from class:Query
Prints a query to a string, withfield
assumed to be the default field and omitted.
-