public class TermQueryPrefixTreeStrategy extends PrefixTreeStrategy
PrefixTreeStrategy using a large TermsFilter of all the nodes from SpatialPrefixTree.getNodes(com.spatial4j.core.shape.Shape,
int, boolean). 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.defaultFieldValuesArrayLen, distErrPct, FIELD_TYPE, gridctx| Constructor and Description |
|---|
TermQueryPrefixTreeStrategy(SpatialPrefixTree grid,
String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
Filter |
makeFilter(SpatialArgs args)
|
createIndexableFields, createIndexableFields, getDistErrPct, getGrid, makeDistanceValueSource, setDefaultFieldValuesArrayLen, setDistErrPctgetFieldName, getSpatialContext, makeQuery, makeRecipDistanceValueSource, toStringpublic TermQueryPrefixTreeStrategy(SpatialPrefixTree grid, String fieldName)
public Filter makeFilter(SpatialArgs args)
SpatialStrategySpatialOperation
and Shape from the supplied args.
If a subclasses implements
SpatialStrategy.makeQuery(org.apache.lucene.spatial.query.SpatialArgs)
then this method could be simply:
return new QueryWrapperFilter(makeQuery(args).getQuery());
makeFilter in class SpatialStrategyCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.