File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ pub struct SearchResult<T> {
46
46
pub matches_position : Option < HashMap < String , Vec < MatchRange > > > ,
47
47
}
48
48
49
+ #[ derive( Deserialize , Debug ) ]
50
+ #[ serde( rename_all = "camelCase" ) ]
51
+ pub struct FacetStats {
52
+ pub min : u32 ,
53
+ pub max : u32 ,
54
+ }
49
55
#[ derive( Deserialize , Debug ) ]
50
56
#[ serde( rename_all = "camelCase" ) ]
51
57
/// A struct containing search results and other information about the search.
@@ -68,6 +74,8 @@ pub struct SearchResults<T> {
68
74
pub total_pages : Option < usize > ,
69
75
/// Distribution of the given facets
70
76
pub facet_distribution : Option < HashMap < String , HashMap < String , usize > > > ,
77
+ /// facet stats of the numerical facets requested in the `facet` search parameter.
78
+ pub facet_stats : Option < HashMap < String , FacetStats > > ,
71
79
/// Processing time of the query
72
80
pub processing_time_ms : usize ,
73
81
/// Query originating the response
Original file line number Diff line number Diff line change @@ -1057,7 +1057,6 @@ mod test {
1057
1057
#[ meilisearch_test]
1058
1058
async fn test_delete_tasks_with_params ( ) -> Result < ( ) , Error > {
1059
1059
let mut s = mockito:: Server :: new_async ( ) . await ;
1060
- // let mut s = mockito::Server::new_async().await;
1061
1060
let mock_server_url = s. url ( ) ;
1062
1061
let client = Client :: new ( mock_server_url, Some ( "masterKey" ) ) ;
1063
1062
let path = "/tasks?indexUids=movies,test&statuses=equeued&types=documentDeletion&uids=1" ;
You can’t perform that action at this time.
0 commit comments