Package org.apache.lucene.spatial.prefix
package org.apache.lucene.spatial.prefix
Prefix Tree Strategy.
-
ClassDescriptionBase class for Lucene Queries on SpatialPrefixTree fields.Traverses a
SpatialPrefixTree
indexed field, using the template and visitor design patterns for subclasses to guide the traversal and collect matching documents.A visitor node/cell found via the query shape forAbstractVisitingPrefixTreeQuery.VisitorTemplate
.A TokenStream used internally byPrefixTreeStrategy
.Finds docs where its indexed shapeCONTAINS
the query shape.Computes spatial facets in two dimensions as a grid of numbers.Response structureA Query matching documents that have anSpatialRelation.INTERSECTS
(i.e.A PrefixTree based on Number/Date ranges.Facet response informationHolds a block of detailLevel counts aggregated to their parent level.Implementation ofShapeFieldCacheProvider
designed forPrefixTreeStrategy
s that index points (AND ONLY POINTS!).Computes facets on cells forPrefixTreeStrategy
.A callback/visitor of facet counts.An abstract SpatialStrategy based onSpatialPrefixTree
.APrefixTreeStrategy
which usesAbstractVisitingPrefixTreeQuery
.A basic implementation ofPrefixTreeStrategy
using a largeTermInSetQuery
of all the cells fromSpatialPrefixTree.getTreeCellIterator(org.locationtech.spatial4j.shape.Shape, int)
.Finds docs where its indexed shape isWITHIN
the query shape.