aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/test/integration/ThirdSearcher.java
blob: 767e9093a52f501c50eb9d268963cabe003c1a15 (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 ThirdSearcher extends Searcher {
    public Result search(com.yahoo.search.Query query, Execution execution) {
        Result result = execution.search(query);
        result.hits().add(new Hit("searcher:3",997));
        return result;
    }
}