Search in sources :

Example 6 with Choicepoint

use of com.yahoo.prelude.semantics.engine.Choicepoint in project vespa by vespa-engine.

the class SequenceCondition method doesMatch.

public boolean doesMatch(RuleEvaluation e) {
    Choicepoint choicepoint = e.getChoicepoint(this, true);
    choicepoint.updateState();
    boolean matches = allSubConditionsMatches(e);
    if (!matches)
        choicepoint.backtrack();
    return matches;
}
Also used : Choicepoint(com.yahoo.prelude.semantics.engine.Choicepoint)

Aggregations

Choicepoint (com.yahoo.prelude.semantics.engine.Choicepoint)6 PhraseItem (com.yahoo.prelude.query.PhraseItem)1 PhraseMatcher (com.yahoo.prelude.querytransform.PhraseMatcher)1 FlattenedItem (com.yahoo.prelude.semantics.engine.FlattenedItem)1