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;
}
Aggregations