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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for SearchResults<T> where
T: RefUnwindSafe,
impl<T> Send for SearchResults<T> where
T: Send,
impl<T> Sync for SearchResults<T> where
T: Sync,
impl<T> Unpin for SearchResults<T> where
T: Unpin,
impl<T> UnwindSafe for SearchResults<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
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
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