mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
WIP
This commit is contained in:
parent
384fdc2df4
commit
a86aeba411
@ -150,6 +150,7 @@ fn get_ranking_rules_for_query_graph_search<'ctx>(
|
|||||||
crate::Criterion::Typo
|
crate::Criterion::Typo
|
||||||
| crate::Criterion::Attribute
|
| crate::Criterion::Attribute
|
||||||
| crate::Criterion::Proximity
|
| crate::Criterion::Proximity
|
||||||
|
// TODO: no exactness
|
||||||
| crate::Criterion::Exactness => {
|
| crate::Criterion::Exactness => {
|
||||||
if !words {
|
if !words {
|
||||||
ranking_rules.push(Box::new(Words::new(terms_matching_strategy)));
|
ranking_rules.push(Box::new(Words::new(terms_matching_strategy)));
|
||||||
|
@ -216,6 +216,7 @@ impl QueryTerm {
|
|||||||
///
|
///
|
||||||
/// This excludes synonyms, split words, and words stored in the prefix databases.
|
/// This excludes synonyms, split words, and words stored in the prefix databases.
|
||||||
pub fn all_phrases(&'_ self) -> impl Iterator<Item = Interned<Phrase>> + Clone + '_ {
|
pub fn all_phrases(&'_ self) -> impl Iterator<Item = Interned<Phrase>> + Clone + '_ {
|
||||||
|
todo!("self.phrase");
|
||||||
self.split_words.iter().chain(self.synonyms.iter()).copied()
|
self.split_words.iter().chain(self.synonyms.iter()).copied()
|
||||||
}
|
}
|
||||||
pub fn is_empty(&self) -> bool {
|
pub fn is_empty(&self) -> bool {
|
||||||
|
@ -15,6 +15,8 @@ mod proximity;
|
|||||||
/// Implementation of the `typo` ranking rule
|
/// Implementation of the `typo` ranking rule
|
||||||
mod typo;
|
mod typo;
|
||||||
|
|
||||||
|
mod attribute_rank;
|
||||||
|
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
|
|
||||||
pub use condition_docids_cache::ConditionDocIdsCache;
|
pub use condition_docids_cache::ConditionDocIdsCache;
|
||||||
|
Loading…
Reference in New Issue
Block a user