Class HasParentQueryDescriptor<T>
Inheritance
HasParentQueryDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class HasParentQueryDescriptor<T> : QueryDescriptorBase<HasParentQueryDescriptor<T>, IHasParentQuery>, IDescriptor, IHasParentQuery, IQuery where T : class
Type Parameters
Constructors
|
Edit this page
View Source
HasParentQueryDescriptor()
Declaration
public HasParentQueryDescriptor()
Properties
|
Edit this page
View Source
Conditionless
Whether the query is conditionless. A conditionless query is not serialized as part of the request
sent to OpenSearch.
Declaration
protected override bool Conditionless { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
IgnoreUnmapped(bool?)
Declaration
public HasParentQueryDescriptor<T> IgnoreUnmapped(bool? ignoreUnmapped = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreUnmapped |
|
Returns
|
Edit this page
View Source
InnerHits(Func<InnerHitsDescriptor<T>, IInnerHits>)
Declaration
public HasParentQueryDescriptor<T> InnerHits(Func<InnerHitsDescriptor<T>, IInnerHits> selector = null)
Parameters
Returns
|
Edit this page
View Source
ParentType(string)
Declaration
public HasParentQueryDescriptor<T> ParentType(string type)
Parameters
Type |
Name |
Description |
string |
type |
|
Returns
|
Edit this page
View Source
Query(Func<QueryContainerDescriptor<T>, QueryContainer>)
Declaration
public HasParentQueryDescriptor<T> Query(Func<QueryContainerDescriptor<T>, QueryContainer> selector)
Parameters
Returns
|
Edit this page
View Source
Score(bool?)
Determines whether the score of the matching parent document is aggregated into the child documents belonging to the matching parent
document.
The default is false which ignores the score from the parent document.
Declaration
public HasParentQueryDescriptor<T> Score(bool? score = true)
Parameters
Type |
Name |
Description |
bool? |
score |
|
Returns
Implements
Extension Methods