pub struct InnerHits { /* private fields */ }
Expand description
The parent-join
and nested
features allow the return of documents that have matches in a different scope. In the
parent/child case, parent documents are returned based on matches in child documents or
child documents are returned based on matches in parent documents. In the nested case,
documents are returned based on matches in nested inner objects.
In both cases, the actual matches in the different scopes that caused a document to be
returned are hidden. In many cases, it’s very useful to know which inner nested objects
(in the case of nested) or children/parent documents (in the case of parent/child) caused
certain information to be returned. The inner hits feature can be used for this. This
feature returns per search hit in the search response additional nested hits that caused a
search hit to match in a different scope.
Inner hits can be used by defining an inner_hits definition on a nested, has_child
or has_parent query and filter.
https://www.elastic.co/guide/en/elasticsearch/reference/current/inner-hits.html
Indicates which source fields are returned for matching documents
Starting document offset.
Defaults to 0.
The number of hits to return.
Defaults to 10.
A collection of sorting fields
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
This method tests for
self and
other values to be equal, and is used
by
==.
Read more
This method tests for
!=. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Read more
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.