Search in sources :

Example 1 with RangeQueryOptimizer

use of com.yahoo.search.querytransform.RangeQueryOptimizer in project vespa by vespa-engine.

the class RangeQueryOptimizerTestCase method assertOptimized.

private Query assertOptimized(String explanation, String expected, Query query) {
    Chain<Searcher> chain = new Chain<>("test", new RangeQueryOptimizer());
    new Execution(chain, Execution.Context.createContextStub(indexFacts)).search(query);
    assertEquals(explanation, expected, query.getModel().getQueryTree().getRoot().toString());
    return query;
}
Also used : Chain(com.yahoo.component.chain.Chain) Execution(com.yahoo.search.searchchain.Execution) RangeQueryOptimizer(com.yahoo.search.querytransform.RangeQueryOptimizer) Searcher(com.yahoo.search.Searcher)

Aggregations

Chain (com.yahoo.component.chain.Chain)1 Searcher (com.yahoo.search.Searcher)1 RangeQueryOptimizer (com.yahoo.search.querytransform.RangeQueryOptimizer)1 Execution (com.yahoo.search.searchchain.Execution)1