mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Rename the PrefixCache into PrefixDocumentsCache
This commit is contained in:
parent
1a5a104f13
commit
58836d89aa
8 changed files with 44 additions and 44 deletions
|
@ -39,7 +39,7 @@ pub fn bucket_sort<'c, FI>(
|
|||
postings_lists_store: store::PostingsLists,
|
||||
documents_fields_counts_store: store::DocumentsFieldsCounts,
|
||||
synonyms_store: store::Synonyms,
|
||||
prefix_cache_store: store::PrefixCache,
|
||||
prefix_documents_cache_store: store::PrefixDocumentsCache,
|
||||
) -> MResult<Vec<Document>>
|
||||
where
|
||||
FI: Fn(DocumentId) -> bool,
|
||||
|
@ -62,7 +62,7 @@ where
|
|||
postings_lists_store,
|
||||
documents_fields_counts_store,
|
||||
synonyms_store,
|
||||
prefix_cache_store,
|
||||
prefix_documents_cache_store,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ where
|
|||
prefix[..len].copy_from_slice(&automaton.query.as_bytes()[..len]);
|
||||
|
||||
let mut documents = Vec::new();
|
||||
let iter = prefix_cache_store.prefix_documents(reader, prefix)?;
|
||||
let iter = prefix_documents_cache_store.prefix_documents(reader, prefix)?;
|
||||
for result in iter.skip(range.start).take(range.len()) {
|
||||
let (docid, highlights) = result?;
|
||||
documents.push(Document::from_highlights(docid, &highlights));
|
||||
|
@ -201,7 +201,7 @@ pub fn bucket_sort_with_distinct<'c, FI, FD>(
|
|||
postings_lists_store: store::PostingsLists,
|
||||
documents_fields_counts_store: store::DocumentsFieldsCounts,
|
||||
synonyms_store: store::Synonyms,
|
||||
prefix_cache_store: store::PrefixCache,
|
||||
prefix_documents_cache_store: store::PrefixDocumentsCache,
|
||||
) -> MResult<Vec<Document>>
|
||||
where
|
||||
FI: Fn(DocumentId) -> bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue