Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class OrQuery

    Factory for disjunctions

    Inheritance
    object
    SrndQuery
    ComposedQuery
    OrQuery
    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 OrQuery : ComposedQuery, IDistanceSubQuery

    Constructors

    OrQuery(IList<SrndQuery>, bool, string)

    Factory for disjunctions

    Declaration
    public OrQuery(IList<SrndQuery> queries, bool infix, string opName)
    Parameters
    Type Name Description
    IList<SrndQuery> queries
    bool infix
    string opName

    Methods

    AddSpanQueries(SpanNearClauseFactory)

    Factory for disjunctions

    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

    MakeLuceneQueryFieldNoBoost(string, BasicQueryFactory)

    Factory for disjunctions

    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.