org.apache.lucene.spatial.prefix

Class TermQueryPrefixTreeStrategy



  • public class TermQueryPrefixTreeStrategy
    extends PrefixTreeStrategy
    A basic implementation of PrefixTreeStrategy using a large TermsQuery of all the cells from SpatialPrefixTree#getTreeCellIterator(org.locationtech.spatial4j.shape.Shape, int). It only supports the search of indexed Point shapes.

    The precision of query shapes (distErrPct) is an important factor in using this Strategy. If the precision is too precise then it will result in many terms which will amount to a slower query.