mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-08-01 03:10:04 +00:00
Implement the attribute ranking rule edge computation
This commit is contained in:
committed by
Loïc Lecrenier
parent
e55efc419e
commit
d6a7c28e4d
@ -13,4 +13,8 @@ impl Interned<Phrase> {
|
||||
let p = ctx.phrase_interner.get(self);
|
||||
p.words.iter().flatten().map(|w| ctx.word_interner.get(*w)).join(" ")
|
||||
}
|
||||
pub fn words(self, ctx: &SearchContext) -> Vec<Option<Interned<String>>> {
|
||||
let p = ctx.phrase_interner.get(self);
|
||||
p.words.clone()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user