Class ContainsPrefixTreeQuery


public class ContainsPrefixTreeQuery extends AbstractPrefixTreeQuery
Finds docs where its indexed shape CONTAINS the query shape. For use on RecursivePrefixTreeStrategy.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • multiOverlappingIndexedShapes

      protected final boolean multiOverlappingIndexedShapes
      If the spatial data for a document is comprised of multiple overlapping or adjacent parts, it might fail to match a query shape when doing the CONTAINS predicate when the sum of those shapes contain the query shape but none do individually. Set this to false to increase performance if you don't care about that circumstance (such as if your indexed data doesn't even have such conditions). See LUCENE-5062.
  • Constructor Details

    • ContainsPrefixTreeQuery

      public ContainsPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, boolean multiOverlappingIndexedShapes)
  • Method Details