You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
478: Fix json serialization error if meilisearch response contains facet_stats r=bidoubiwa a=Vedmak
# Pull Request
## Related issue
Fixes#474
## What does this PR do?
- change field types of FacetStats struct from u32 to f64
- add test for facet_stats
## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?
Co-authored-by: Vedmak <[email protected]>
Document{id:0,kind:"text".into(),value:S("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."),nested:Nested{child:S("first")}},
574
-
Document{id:1,kind:"text".into(),value:S("dolor sit amet, consectetur adipiscing elit"),nested:Nested{child:S("second")}},
575
-
Document{id:2,kind:"title".into(),value:S("The Social Network"),nested:Nested{child:S("third")}},
576
-
Document{id:3,kind:"title".into(),value:S("Harry Potter and the Sorcerer's Stone"),nested:Nested{child:S("fourth")}},
577
-
Document{id:4,kind:"title".into(),value:S("Harry Potter and the Chamber of Secrets"),nested:Nested{child:S("fift")}},
578
-
Document{id:5,kind:"title".into(),value:S("Harry Potter and the Prisoner of Azkaban"),nested:Nested{child:S("sixth")}},
579
-
Document{id:6,kind:"title".into(),value:S("Harry Potter and the Goblet of Fire"),nested:Nested{child:S("seventh")}},
580
-
Document{id:7,kind:"title".into(),value:S("Harry Potter and the Order of the Phoenix"),nested:Nested{child:S("eighth")}},
581
-
Document{id:8,kind:"title".into(),value:S("Harry Potter and the Half-Blood Prince"),nested:Nested{child:S("ninth")}},
582
-
Document{id:9,kind:"title".into(),value:S("Harry Potter and the Deathly Hallows"),nested:Nested{child:S("tenth")}},
574
+
Document{id:0,kind:"text".into(),number:0,value:S("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."),nested:Nested{child:S("first")}},
575
+
Document{id:1,kind:"text".into(),number:10,value:S("dolor sit amet, consectetur adipiscing elit"),nested:Nested{child:S("second")}},
576
+
Document{id:2,kind:"title".into(),number:20,value:S("The Social Network"),nested:Nested{child:S("third")}},
577
+
Document{id:3,kind:"title".into(),number:30,value:S("Harry Potter and the Sorcerer's Stone"),nested:Nested{child:S("fourth")}},
578
+
Document{id:4,kind:"title".into(),number:40,value:S("Harry Potter and the Chamber of Secrets"),nested:Nested{child:S("fift")}},
579
+
Document{id:5,kind:"title".into(),number:50,value:S("Harry Potter and the Prisoner of Azkaban"),nested:Nested{child:S("sixth")}},
580
+
Document{id:6,kind:"title".into(),number:60,value:S("Harry Potter and the Goblet of Fire"),nested:Nested{child:S("seventh")}},
581
+
Document{id:7,kind:"title".into(),number:70,value:S("Harry Potter and the Order of the Phoenix"),nested:Nested{child:S("eighth")}},
582
+
Document{id:8,kind:"title".into(),number:80,value:S("Harry Potter and the Half-Blood Prince"),nested:Nested{child:S("ninth")}},
583
+
Document{id:9,kind:"title".into(),number:90,value:S("Harry Potter and the Deathly Hallows"),nested:Nested{child:S("tenth")}},
583
584
],None).await?;
584
-
let t1 = index.set_filterable_attributes(["kind","value"]).await?;
value:S("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."),
0 commit comments