mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
fix: Reduce the size of the DocIndex type
This commit is contained in:
parent
aef7d7825f
commit
a45cc4b618
6 changed files with 23 additions and 23 deletions
|
@ -126,7 +126,7 @@ fn crop_text(
|
|||
(m.char_index as usize) + (m.char_length as usize) <= start + (context * 2)
|
||||
})
|
||||
.map(|match_| {
|
||||
Match { char_index: match_.char_index - start as u32, ..match_ }
|
||||
Match { char_index: match_.char_index - start as u16, ..match_ }
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue