Merge Phrase and WordDerivations into one structure

This commit is contained in:
Loïc Lecrenier
2023-03-14 10:54:55 +01:00
parent 3004e281d7
commit 31628c5cd4
11 changed files with 335 additions and 645 deletions

View File

@ -45,7 +45,7 @@ For the search query `sunflower`, we need to register the following things:
- and also the couple of adjacent words `sun flower`
- as well as all the user-defined synonyms of `sunflower`
All these derivations of a word will be stored in [`WordDerivations`].
All these derivations of a word will be stored in [`QueryTerm`].
## Example 2:
For the search query `summer house by`.
@ -148,7 +148,7 @@ impl QueryGraph {
let mut new_nodes = vec![];
let new_node_idx = graph.add_node(&prev0, QueryNode::Term(term0.clone()));
new_nodes.push(new_node_idx);
if term0.is_empty(&ctx.derivations_interner) {
if term0.is_empty(&ctx.term_interner) {
empty_nodes.push(new_node_idx);
}