Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ComposedQuery

    Base class for composite queries (such as AND/OR/NOT)

    Inheritance
    System.Object
    SrndQuery
    ComposedQuery
    AndQuery
    DistanceQuery
    NotQuery
    OrQuery
    Inherited Members
    SrndQuery.IsWeighted
    SrndQuery.Weight
    SrndQuery.WeightString
    SrndQuery.WeightOperator
    SrndQuery.WeightToString(StringBuilder)
    SrndQuery.MakeLuceneQueryField(String, BasicQueryFactory)
    SrndQuery.MakeLuceneQueryFieldNoBoost(String, BasicQueryFactory)
    SrndQuery.Clone()
    SrndQuery.GetHashCode()
    SrndQuery.Equals(Object)
    SrndQuery.TheEmptyLcnQuery
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.QueryParsers.Surround.Query
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public abstract class ComposedQuery : SrndQuery

    Constructors

    | Improve this Doc View Source

    ComposedQuery(IList<SrndQuery>, Boolean, String)

    Declaration
    protected ComposedQuery(IList<SrndQuery> qs, bool operatorInfix, string opName)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<SrndQuery> qs
    System.Boolean operatorInfix
    System.String opName

    Fields

    | Improve this Doc View Source

    m_opName

    Declaration
    protected string m_opName
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    m_queries

    Declaration
    protected IList<SrndQuery> m_queries
    Field Value
    Type Description
    System.Collections.Generic.IList<SrndQuery>

    Properties

    | Improve this Doc View Source

    BracketClose

    Declaration
    protected virtual string BracketClose { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    BracketOpen

    Declaration
    protected virtual string BracketOpen { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    IsFieldsSubQueryAcceptable

    Declaration
    public override bool IsFieldsSubQueryAcceptable { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    SrndQuery.IsFieldsSubQueryAcceptable
    | Improve this Doc View Source

    IsOperatorInfix

    Declaration
    public virtual bool IsOperatorInfix { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    NrSubQueries

    Declaration
    public virtual int NrSubQueries { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    OperatorName

    Declaration
    public virtual string OperatorName { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    PrefixSeparator

    Declaration
    protected virtual string PrefixSeparator { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    GetSubQueriesEnumerator()

    Declaration
    public virtual IEnumerator<SrndQuery> GetSubQueriesEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<SrndQuery>
    | Improve this Doc View Source

    GetSubQuery(Int32)

    Declaration
    public virtual SrndQuery GetSubQuery(int qn)
    Parameters
    Type Name Description
    System.Int32 qn
    Returns
    Type Description
    SrndQuery
    | Improve this Doc View Source

    InfixToString(StringBuilder)

    Declaration
    protected virtual void InfixToString(StringBuilder r)
    Parameters
    Type Name Description
    System.Text.StringBuilder r
    | Improve this Doc View Source

    MakeLuceneSubQueriesField(String, BasicQueryFactory)

    Declaration
    public virtual IList<Query> MakeLuceneSubQueriesField(string fn, BasicQueryFactory qf)
    Parameters
    Type Name Description
    System.String fn
    BasicQueryFactory qf
    Returns
    Type Description
    System.Collections.Generic.IList<Lucene.Net.Search.Query>
    | Improve this Doc View Source

    PrefixToString(StringBuilder)

    Declaration
    protected virtual void PrefixToString(StringBuilder r)
    Parameters
    Type Name Description
    System.Text.StringBuilder r
    | Improve this Doc View Source

    Recompose(IList<SrndQuery>)

    Declaration
    protected virtual void Recompose(IList<SrndQuery> queries)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<SrndQuery> queries
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    SrndQuery.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.