mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Use an ugly trick to avoid cloning the FST
This commit is contained in:
parent
1163f390b3
commit
4be11f961b
2 changed files with 12 additions and 1 deletions
|
@ -446,7 +446,7 @@ fn fetch_matches<'txn, 'tag>(
|
|||
) -> MResult<Vec<BareMatch<'tag>>>
|
||||
{
|
||||
let before_words_fst = Instant::now();
|
||||
let words = match main_store.words_fst(reader)? {
|
||||
let words = match unsafe { main_store.static_words_fst(reader)? } {
|
||||
Some(words) => words,
|
||||
None => return Ok(Vec::new()),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue