mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-02 16:43:34 +01:00
WIP
This commit is contained in:
parent
abdc4afcca
commit
6a4b2516aa
@ -424,6 +424,8 @@ pub enum MatchingStrategy {
|
|||||||
Last,
|
Last,
|
||||||
/// All query words are mandatory
|
/// All query words are mandatory
|
||||||
All,
|
All,
|
||||||
|
/// Remove query words from the most frequent to the least
|
||||||
|
Frequency,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for MatchingStrategy {
|
impl Default for MatchingStrategy {
|
||||||
@ -437,6 +439,7 @@ impl From<MatchingStrategy> for TermsMatchingStrategy {
|
|||||||
match other {
|
match other {
|
||||||
MatchingStrategy::Last => Self::Last,
|
MatchingStrategy::Last => Self::Last,
|
||||||
MatchingStrategy::All => Self::All,
|
MatchingStrategy::All => Self::All,
|
||||||
|
MatchingStrategy::Frequency => Self::Frequency,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user