mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-06 20:25:40 +00:00
Clean up the code a bit
This commit is contained in:
parent
5d8cdb075b
commit
8c66e63760
@ -247,8 +247,8 @@ async fn process_search_request(
|
|||||||
embedder,
|
embedder,
|
||||||
}),
|
}),
|
||||||
limit: limit.unwrap_or_else(DEFAULT_SEARCH_LIMIT),
|
limit: limit.unwrap_or_else(DEFAULT_SEARCH_LIMIT),
|
||||||
sort: sort,
|
sort,
|
||||||
distinct: distinct,
|
distinct,
|
||||||
matching_strategy: matching_strategy
|
matching_strategy: matching_strategy
|
||||||
.map(|ms| match ms {
|
.map(|ms| match ms {
|
||||||
index::MatchingStrategy::Last => MatchingStrategy::Last,
|
index::MatchingStrategy::Last => MatchingStrategy::Last,
|
||||||
@ -256,7 +256,7 @@ async fn process_search_request(
|
|||||||
index::MatchingStrategy::Frequency => MatchingStrategy::Frequency,
|
index::MatchingStrategy::Frequency => MatchingStrategy::Frequency,
|
||||||
})
|
})
|
||||||
.unwrap_or(MatchingStrategy::Frequency),
|
.unwrap_or(MatchingStrategy::Frequency),
|
||||||
attributes_to_search_on: attributes_to_search_on,
|
attributes_to_search_on,
|
||||||
ranking_score_threshold: ranking_score_threshold
|
ranking_score_threshold: ranking_score_threshold
|
||||||
.and_then(|rst| RankingScoreThreshold::try_from(rst).ok()),
|
.and_then(|rst| RankingScoreThreshold::try_from(rst).ok()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user