mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Extract the facet order before extracting the facets values
This commit is contained in:
parent
82b43e9a7f
commit
69c118ef76
2 changed files with 11 additions and 1 deletions
|
@ -307,6 +307,7 @@ pub struct SearchForFacetValues<'a> {
|
|||
facet: String,
|
||||
search_query: Search<'a>,
|
||||
max_values: usize,
|
||||
sort_by: OrderBy,
|
||||
is_hybrid: bool,
|
||||
}
|
||||
|
||||
|
@ -314,6 +315,7 @@ impl<'a> SearchForFacetValues<'a> {
|
|||
pub fn new(
|
||||
facet: String,
|
||||
search_query: Search<'a>,
|
||||
sort_by: OrderBy,
|
||||
is_hybrid: bool,
|
||||
) -> SearchForFacetValues<'a> {
|
||||
SearchForFacetValues {
|
||||
|
@ -321,6 +323,7 @@ impl<'a> SearchForFacetValues<'a> {
|
|||
facet,
|
||||
search_query,
|
||||
max_values: DEFAULT_MAX_NUMBER_OF_VALUES_PER_FACET,
|
||||
sort_by,
|
||||
is_hybrid,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue