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
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
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,
}
}