blob: 5282cbb6fc97346097eecbc2e2061d6a16ad90f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.searcher;
import com.yahoo.search.Query;
import com.yahoo.search.Result;
import com.yahoo.search.Searcher;
import com.yahoo.search.searchchain.Execution;
/**
* This searcher fills the results in the first phase. May be put into
* a search chain to ensure full results are present at an earlier
* time than they would normally be.
*
* @author havardpe
*/
public class FillSearcher extends Searcher {
public FillSearcher() { }
@Override
public Result search(Query query, Execution execution) {
Result result;
result = execution.search(query);
execution.fill(result);
return result;
}
}
|