mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Update meilisearch-http/src/index/search.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
3a2e7d3c3b
commit
8fc12b1526
@ -496,8 +496,8 @@ impl<'a, A: AsRef<[u8]>> Formatter<'a, A> {
|
|||||||
|
|
||||||
tokens
|
tokens
|
||||||
.map(|(word, token)| {
|
.map(|(word, token)| {
|
||||||
if let Some(match_len) = matcher.matches(token.text()) {
|
if format_options.highlight && token.is_word() {
|
||||||
if format_options.highlight && token.is_word() {
|
if let Some(match_len) = matcher.matches(token.text()) {
|
||||||
let mut new_word = String::new();
|
let mut new_word = String::new();
|
||||||
|
|
||||||
new_word.push_str(&self.marks.0);
|
new_word.push_str(&self.marks.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user