refactor formatter

share the analyzer instance between the formatter and the
compute_matches function
This commit is contained in:
marin postma
2021-06-22 11:27:07 +02:00
committed by Tamo
parent eb3d63691a
commit 3456a78552
2 changed files with 52 additions and 24 deletions

View File

@ -66,7 +66,7 @@ impl From<SearchQueryGet> for SearchQuery {
crop_length: other.crop_length,
attributes_to_highlight,
filter,
matches: other.matches.unwrap_or_default(),
matches: other.matches,
facet_distributions,
}
}