Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    SpatialStrategy
    PrefixTreeStrategy
    TermQueryPrefixTreeStrategy
    Inherited Members
    PrefixTreeStrategy.m_grid
    PrefixTreeStrategy.m_simplifyIndexedCells
    PrefixTreeStrategy.m_defaultFieldValuesArrayLen
    PrefixTreeStrategy.m_distErrPct
    PrefixTreeStrategy.DefaultFieldValuesArrayLen
    PrefixTreeStrategy.DistErrPct
    PrefixTreeStrategy.CreateIndexableFields(IShape)
    PrefixTreeStrategy.CreateIndexableFields(IShape, double)
    PrefixTreeStrategy.FIELD_TYPE
    PrefixTreeStrategy.MakeDistanceValueSource(IPoint, double)
    PrefixTreeStrategy.Grid
    SpatialStrategy.m_ctx
    SpatialStrategy.SpatialContext
    SpatialStrategy.FieldName
    SpatialStrategy.MakeDistanceValueSource(IPoint)
    SpatialStrategy.MakeQuery(SpatialArgs)
    SpatialStrategy.MakeRecipDistanceValueSource(IShape)
    SpatialStrategy.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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.

    If a subclasses implements MakeQuery(SpatialArgs) then this method could be simply:
    return new QueryWrapperFilter(MakeQuery(args).Query);
    Declaration
    public override Filter MakeFilter(SpatialArgs args)
    Parameters
    Type Name Description
    SpatialArgs args
    Returns
    Type Description
    Filter
    Overrides
    SpatialStrategy.MakeFilter(SpatialArgs)
    Exceptions
    Type Condition
    NotSupportedException

    If the strategy does not support the shape in args.

    UnsupportedSpatialOperationException

    If the strategy does not support the SpatialOperation in args.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.