mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 05:30:16 +01:00
Update milli/src/search/matches/mod.rs
This commit is contained in:
parent
1237cfc249
commit
fb794c6b5e
@ -419,7 +419,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> {
|
|||||||
} else {
|
} else {
|
||||||
match &self.matches {
|
match &self.matches {
|
||||||
Some((tokens, matches)) => {
|
Some((tokens, matches)) => {
|
||||||
// If the text have to be croped,
|
// If the text has to be cropped,
|
||||||
// compute the best interval to crop around.
|
// compute the best interval to crop around.
|
||||||
let matches = match format_options.crop {
|
let matches = match format_options.crop {
|
||||||
Some(crop_size) if crop_size > 0 => {
|
Some(crop_size) if crop_size > 0 => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user