aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/test/integration/FirstSearcher.java
blob: 7a249a729ab810597311abc14286eebc2d918218 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.test.integration;

import com.yahoo.search.result.Hit;
import com.yahoo.search.Result;
import com.yahoo.search.Searcher;
import com.yahoo.search.searchchain.Execution;

public class FirstSearcher extends Searcher {
    public Result search(com.yahoo.search.Query query, Execution execution) {
        Result result = execution.search(query);
        result.hits().add(new Hit("searcher:1",995));
        return result;
    }
}