pub struct SearchResults<T> {
    pub hits: Vec<SearchResult<T>>,
    pub offset: usize,
    pub limit: usize,
    pub estimated_total_hits: usize,
    pub facet_distribution: Option<HashMap<String, HashMap<String, usize>>>,
    pub processing_time_ms: usize,
    pub query: String,
}
Expand description

A struct containing search results and other information about the search.

Fields

hits: Vec<SearchResult<T>>

Results of the query

offset: usize

Number of documents skipped

limit: usize

Number of results returned

estimated_total_hits: usize

Total number of matches

facet_distribution: Option<HashMap<String, HashMap<String, usize>>>

Distribution of the given facets

processing_time_ms: usize

Processing time of the query

query: String

Query originating the response

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more