Highlight all the matching words

This commit is contained in:
Kerollmops 2020-07-14 11:51:21 +02:00
parent 085c376655
commit 9ade00e27b
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 18 additions and 8 deletions

View file

@ -58,7 +58,7 @@ fn main() -> anyhow::Result<()> {
let before = Instant::now();
let query = result?;
let documents_ids = index.search(&rtxn, &query)?;
let (_, documents_ids) = index.search(&rtxn, &query)?;
let headers = match index.headers(&rtxn)? {
Some(headers) => headers,
None => return Ok(()),