mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
add exact prefix to query_docids
This commit is contained in:
parent
21ae4143b1
commit
56b4f5dce2
@ -404,7 +404,9 @@ fn query_docids(
|
||||
match &query.kind {
|
||||
QueryKind::Exact { word, .. } => {
|
||||
if query.prefix && ctx.in_prefix_cache(&word) {
|
||||
Ok(ctx.word_prefix_docids(&word)?.unwrap_or_default())
|
||||
let doc_ids = ctx.word_prefix_docids(&word)?.unwrap_or_default();
|
||||
let exact_docids = ctx.exact_word_prefix_docids(&word)?.unwrap_or_default();
|
||||
Ok(doc_ids | exact_docids)
|
||||
} else if query.prefix {
|
||||
let words = word_derivations(&word, true, 0, ctx.words_fst(), wdcache)?;
|
||||
let mut docids = RoaringBitmap::new();
|
||||
|
Loading…
Reference in New Issue
Block a user