Search in sources :

Example 1 with QuerySnapshotSearcher

use of com.yahoo.prelude.searcher.QuerySnapshotSearcher in project vespa by vespa-engine.

the class QuerySnapshotSearcherTestCase method test.

public void test() {
    Searcher searcher = new QuerySnapshotSearcher();
    Result result = doSearch(searcher, new Query(), 0, 10);
    Hit hit = result.hits().get(0);
    assertEquals(String.valueOf(Double.POSITIVE_INFINITY), hit.getRelevance().toString());
}
Also used : Hit(com.yahoo.search.result.Hit) Query(com.yahoo.search.Query) Searcher(com.yahoo.search.Searcher) QuerySnapshotSearcher(com.yahoo.prelude.searcher.QuerySnapshotSearcher) QuerySnapshotSearcher(com.yahoo.prelude.searcher.QuerySnapshotSearcher) Result(com.yahoo.search.Result)

Aggregations

QuerySnapshotSearcher (com.yahoo.prelude.searcher.QuerySnapshotSearcher)1 Query (com.yahoo.search.Query)1 Result (com.yahoo.search.Result)1 Searcher (com.yahoo.search.Searcher)1 Hit (com.yahoo.search.result.Hit)1