Update meilisearch-http/src/index/search.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
marin 2021-06-21 11:06:06 +02:00 committed by GitHub
parent 3a2e7d3c3b
commit 8fc12b1526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -496,8 +496,8 @@ impl<'a, A: AsRef<[u8]>> Formatter<'a, A> {
tokens
.map(|(word, token)| {
if let Some(match_len) = matcher.matches(token.text()) {
if format_options.highlight && token.is_word() {
if let Some(match_len) = matcher.matches(token.text()) {
let mut new_word = String::new();
new_word.push_str(&self.marks.0);