mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
c81ff22c5b
commit
a84f3a8b31
13 changed files with 77 additions and 69 deletions
|
@ -695,7 +695,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
struct QueryBody {
|
||||
query: Option<String>,
|
||||
filters: Option<String>,
|
||||
sorters: Option<String>,
|
||||
sort: Option<String>,
|
||||
facet_filters: Option<Vec<UntaggedEither<Vec<String>, String>>>,
|
||||
facet_distribution: Option<bool>,
|
||||
limit: Option<usize>,
|
||||
|
@ -755,7 +755,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
search.limit(limit);
|
||||
}
|
||||
|
||||
if let Some(sort) = query.sorters {
|
||||
if let Some(sort) = query.sort {
|
||||
search.sort_criteria(vec![sort.parse().unwrap()]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue