Class TermQueryPrefixTreeStrategy
A basic implementation of PrefixTreeStrategy using a large Lucene.Net.Queries.TermsFilter of all the cells from GetCells(IShape?, int, bool, bool). 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.Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Spatial.Prefix
Assembly: Lucene.Net.Spatial.dll
Syntax
public class TermQueryPrefixTreeStrategy : PrefixTreeStrategy
Constructors
TermQueryPrefixTreeStrategy(SpatialPrefixTree, string)
A basic implementation of PrefixTreeStrategy using a large Lucene.Net.Queries.TermsFilter of all the cells from GetCells(IShape?, int, bool, bool). 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.Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public TermQueryPrefixTreeStrategy(SpatialPrefixTree grid, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
SpatialPrefixTree | grid | |
string | fieldName |
Methods
MakeFilter(SpatialArgs)
Make a Filter based principally on SpatialOperation
and Spatial4n.Shapes.IShape from the supplied args
.
return new QueryWrapperFilter(MakeQuery(args).Query);
Declaration
public override Filter MakeFilter(SpatialArgs args)
Parameters
Type | Name | Description |
---|---|---|
SpatialArgs | args |
Returns
Type | Description |
---|---|
Filter |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | If the strategy does not support the shape in |
UnsupportedSpatialOperationException | If the strategy does not support the SpatialOperation in |