Search Results for

    Show / Hide Table of Contents

    Class BoolQuery

    Inheritance
    object
    QueryBase
    BoolQuery
    Implements
    IBoolQuery
    IQuery
    Inherited Members
    QueryBase.Boost
    QueryBase.IsStrict
    QueryBase.IsVerbatim
    QueryBase.IsWritable
    QueryBase.Name
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class BoolQuery : QueryBase, IBoolQuery, IQuery

    Properties

    | Edit this page View Source

    Conditionless

    Declaration
    protected override bool Conditionless { get; }
    Property Value
    Type Description
    bool
    Overrides
    QueryBase.Conditionless
    | Edit this page View Source

    Filter

    The clause (query) which is to be used as a filter (in filter context).

    Declaration
    public IEnumerable<QueryContainer> Filter { get; set; }
    Property Value
    Type Description
    IEnumerable<QueryContainer>
    | Edit this page View Source

    MinimumShouldMatch

    Specifies a minimum number of the optional BooleanClauses which must be satisfied.

    Declaration
    public MinimumShouldMatch MinimumShouldMatch { get; set; }
    Property Value
    Type Description
    MinimumShouldMatch
    | Edit this page View Source

    Must

    The clause(s) that must appear in matching documents

    Declaration
    public IEnumerable<QueryContainer> Must { get; set; }
    Property Value
    Type Description
    IEnumerable<QueryContainer>
    | Edit this page View Source

    MustNot

    The clause (query) must not appear in the matching documents. Note that it is not possible to search on documents that only consists of a must_not clauses.

    Declaration
    public IEnumerable<QueryContainer> MustNot { get; set; }
    Property Value
    Type Description
    IEnumerable<QueryContainer>
    | Edit this page View Source

    Should

    The clause (query) should appear in the matching document. A boolean query with no must clauses, one or more should clauses must match a document. The minimum number of should clauses to match can be set using MinimumShouldMatch.

    Declaration
    public IEnumerable<QueryContainer> Should { get; set; }
    Property Value
    Type Description
    IEnumerable<QueryContainer>

    Implements

    IBoolQuery
    IQuery

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Conditionless
      • Filter
      • MinimumShouldMatch
      • Must
      • MustNot
      • Should
    • Implements
    • Extension Methods
    Back to top Generated by DocFX