Extract the facet order before extracting the facets values

This commit is contained in:
Clément Renault 2024-03-12 10:35:39 +01:00
parent 82b43e9a7f
commit 69c118ef76
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
2 changed files with 11 additions and 1 deletions

View file

@ -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,
}
}