Struct meilisearch_sdk::search::SearchResults[][src]

pub struct SearchResults<T> {
    pub hits: Vec<SearchResult<T>>,
    pub offset: usize,
    pub limit: usize,
    pub nb_hits: usize,
    pub exhaustive_nb_hits: bool,
    pub facets_distribution: Option<HashMap<String, HashMap<String, usize>>>,
    pub exhaustive_facets_count: Option<bool>,
    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

nb_hits: usize

Total number of matches

exhaustive_nb_hits: bool

Whether nb_hits is exhaustive

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

Distribution of the given facets

exhaustive_facets_count: Option<bool>

Whether facet_distribution is exhaustive

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

Performs the conversion.

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

Performs the conversion.

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