Class QueryBase
Assembly: OpenSearch.Client.dll
Syntax
public abstract class QueryBase : IQuery
Properties
|
Edit this page
View Source
Boost
Provides a boost to this query to influence its relevance score.
For example, a query with a boost of 2 is twice as important as a query with a boost of 1,
although the actual boost value that is applied undergoes normalization and internal optimization.
Declaration
public double? Boost { get; set; }
Property Value
|
Edit this page
View Source
Conditionless
Declaration
protected abstract bool Conditionless { get; }
Property Value
|
Edit this page
View Source
IsStrict
Whether the query should be treated as strict. A strict query will throw an exception when serialized
if it is Conditionless.
Declaration
public bool IsStrict { get; set; }
Property Value
|
Edit this page
View Source
IsVerbatim
Whether the query should be treated as verbatim. A verbatim query will be serialized as part of the request,
irrespective
of whether it is Conditionless or not.
Declaration
public bool IsVerbatim { get; set; }
Property Value
|
Edit this page
View Source
IsWritable
Whether the query should be treated as writable. Used when determining how to combine queries.
Declaration
public bool IsWritable { get; }
Property Value
|
Edit this page
View Source
Name
The name of the query. Allows you to retrieve for each document what part of the query it matched on.
Declaration
public string Name { get; set; }
Property Value
Operators
|
Edit this page
View Source
operator &(QueryBase, QueryBase)
Declaration
public static QueryBase operator &(QueryBase leftQuery, QueryBase rightQuery)
Parameters
Returns
|
Edit this page
View Source
operator |(QueryBase, QueryBase)
Declaration
public static QueryBase operator |(QueryBase leftQuery, QueryBase rightQuery)
Parameters
Returns
|
Edit this page
View Source
operator false(QueryBase)
Declaration
public static bool operator false(QueryBase a)
Parameters
Returns
|
Edit this page
View Source
implicit operator QueryContainer(QueryBase)
Declaration
public static implicit operator QueryContainer(QueryBase query)
Parameters
Returns
|
Edit this page
View Source
operator !(QueryBase)
Declaration
public static QueryBase operator !(QueryBase query)
Parameters
Returns
|
Edit this page
View Source
operator true(QueryBase)
Declaration
public static bool operator true(QueryBase a)
Parameters
Returns
|
Edit this page
View Source
operator +(QueryBase)
Declaration
public static QueryBase operator +(QueryBase query)
Parameters
Returns
Implements
Extension Methods