Show / Hide Table of Contents

    Class TermQueryPrefixTreeStrategy

    A basic implementation of PrefixTreeStrategy using a large TermsFilter of all the cells from GetCells(IShape, Int32, Boolean, 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.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.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()
    Namespace: Lucene.Net.Spatial.Prefix
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public class TermQueryPrefixTreeStrategy : PrefixTreeStrategy

    Constructors

    | Improve this Doc View Source

    TermQueryPrefixTreeStrategy(SpatialPrefixTree, String)

    Declaration
    public TermQueryPrefixTreeStrategy(SpatialPrefixTree grid, string fieldName)
    Parameters
    Type Name Description
    SpatialPrefixTree grid
    System.String fieldName

    Methods

    | Improve this Doc View Source

    MakeFilter(SpatialArgs)

    Declaration
    public override Filter MakeFilter(SpatialArgs args)
    Parameters
    Type Name Description
    SpatialArgs args
    Returns
    Type Description
    Filter
    Overrides
    SpatialStrategy.MakeFilter(SpatialArgs)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)