Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldsQuery

    Forms an OR query of the provided query across multiple fields.

    Inheritance
    object
    SrndQuery
    FieldsQuery
    Inherited Members
    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 FieldsQuery : SrndQuery

    Constructors

    FieldsQuery(SrndQuery, IList<string>, char)

    Forms an OR query of the provided query across multiple fields.

    Declaration
    public FieldsQuery(SrndQuery q, IList<string> fieldNames, char fieldOp)
    Parameters
    Type Name Description
    SrndQuery q
    IList<string> fieldNames
    char fieldOp

    FieldsQuery(SrndQuery, string, char)

    Forms an OR query of the provided query across multiple fields.

    Declaration
    public FieldsQuery(SrndQuery q, string fieldName, char fieldOp)
    Parameters
    Type Name Description
    SrndQuery q
    string fieldName
    char fieldOp

    Properties

    FieldNames

    Forms an OR query of the provided query across multiple fields.

    Declaration
    public virtual IList<string> FieldNames { get; }
    Property Value
    Type Description
    IList<string>

    FieldOperator

    Forms an OR query of the provided query across multiple fields.

    Declaration
    public virtual char FieldOperator { get; }
    Property Value
    Type Description
    char

    IsFieldsSubQueryAcceptable

    Forms an OR query of the provided query across multiple fields.

    Declaration
    public override bool IsFieldsSubQueryAcceptable { get; }
    Property Value
    Type Description
    bool
    Overrides
    SrndQuery.IsFieldsSubQueryAcceptable

    Methods

    FieldNamesToString(StringBuilder)

    Forms an OR query of the provided query across multiple fields.

    Declaration
    protected virtual void FieldNamesToString(StringBuilder r)
    Parameters
    Type Name Description
    StringBuilder r

    MakeLuceneQueryFieldNoBoost(string, BasicQueryFactory)

    Forms an OR query of the provided query across multiple fields.

    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)

    MakeLuceneQueryNoBoost(BasicQueryFactory)

    Forms an OR query of the provided query across multiple fields.

    Declaration
    public virtual Query MakeLuceneQueryNoBoost(BasicQueryFactory qf)
    Parameters
    Type Name Description
    BasicQueryFactory qf
    Returns
    Type Description
    Query

    ToString()

    This method is used by GetHashCode() and Equals(object), see LUCENE-2945.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    SrndQuery.ToString()
    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.