Highlight ngram matches as well

This commit is contained in:
Loïc Lecrenier
2023-05-03 13:39:19 +02:00
parent bf66e97b48
commit 85d96d35a8
2 changed files with 12 additions and 6 deletions

View File

@ -397,8 +397,8 @@ pub fn execute_search(
None
};
let bucket_sort_output = if let Some(query_terms) = query_terms {
let graph = QueryGraph::from_query(ctx, &query_terms)?;
located_query_terms = Some(query_terms);
let (graph, new_located_query_terms) = QueryGraph::from_query(ctx, &query_terms)?;
located_query_terms = Some(new_located_query_terms);
let ranking_rules = get_ranking_rules_for_query_graph_search(
ctx,