Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class DistanceQuery

    Factory for NEAR queries

    Inheritance
    object
    SrndQuery
    ComposedQuery
    DistanceQuery
    Implements
    IDistanceSubQuery
    Inherited Members
    ComposedQuery.Recompose(IList<SrndQuery>)
    ComposedQuery.m_opName
    ComposedQuery.OperatorName
    ComposedQuery.m_queries
    ComposedQuery.GetSubQueriesEnumerator()
    ComposedQuery.NrSubQueries
    ComposedQuery.GetSubQuery(int)
    ComposedQuery.IsOperatorInfix
    ComposedQuery.MakeLuceneSubQueriesField(string, BasicQueryFactory)
    ComposedQuery.ToString()
    ComposedQuery.PrefixSeparator
    ComposedQuery.BracketOpen
    ComposedQuery.BracketClose
    ComposedQuery.InfixToString(StringBuilder)
    ComposedQuery.PrefixToString(StringBuilder)
    ComposedQuery.IsFieldsSubQueryAcceptable
    SrndQuery.IsWeighted
    SrndQuery.Weight
    SrndQuery.WeightString
    SrndQuery.WeightOperator
    SrndQuery.WeightToString(StringBuilder)
    SrndQuery.MakeLuceneQueryField(string, BasicQueryFactory)
    SrndQuery.Clone()
    SrndQuery.GetHashCode()
    SrndQuery.Equals(object)
    SrndQuery.TheEmptyLcnQuery
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.QueryParsers.Surround.Query
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class DistanceQuery : ComposedQuery, IDistanceSubQuery

    Constructors

    DistanceQuery(IList<SrndQuery>, bool, int, string, bool)

    Factory for NEAR queries

    Declaration
    public DistanceQuery(IList<SrndQuery> queries, bool infix, int opDistance, string opName, bool ordered)
    Parameters
    Type Name Description
    IList<SrndQuery> queries
    bool infix
    int opDistance
    string opName
    bool ordered

    Properties

    OpDistance

    Factory for NEAR queries

    Declaration
    public virtual int OpDistance { get; }
    Property Value
    Type Description
    int

    QueriesOrdered

    Factory for NEAR queries

    Declaration
    public virtual bool QueriesOrdered { get; }
    Property Value
    Type Description
    bool

    Methods

    AddSpanQueries(SpanNearClauseFactory)

    Factory for NEAR queries

    Declaration
    public virtual void AddSpanQueries(SpanNearClauseFactory sncf)
    Parameters
    Type Name Description
    SpanNearClauseFactory sncf

    DistanceSubQueryNotAllowed()

    When DistanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.

    When DistanceSubQueryNotAllowed() returns null AddSpanQueries(SpanNearClauseFactory) can be used in the creation of the span near clause for the subquery.
    Declaration
    public virtual string DistanceSubQueryNotAllowed()
    Returns
    Type Description
    string

    GetSpanNearQuery(IndexReader, string, float, BasicQueryFactory)

    Factory for NEAR queries

    Declaration
    public virtual Query GetSpanNearQuery(IndexReader reader, string fieldName, float boost, BasicQueryFactory qf)
    Parameters
    Type Name Description
    IndexReader reader
    string fieldName
    float boost
    BasicQueryFactory qf
    Returns
    Type Description
    Query

    MakeLuceneQueryFieldNoBoost(string, BasicQueryFactory)

    Factory for NEAR queries

    Declaration
    public override Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf)
    Parameters
    Type Name Description
    string fieldName
    BasicQueryFactory qf
    Returns
    Type Description
    Query
    Overrides
    SrndQuery.MakeLuceneQueryFieldNoBoost(string, BasicQueryFactory)

    Implements

    IDistanceSubQuery
    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.