blob: 3fb1416f26571d1d0dad58e230b1fca4c304a70e (
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
29
30
31
32
33
34
35
36
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.search.searchchain;
import com.yahoo.component.chain.model.ChainSpecification;
import com.yahoo.search.searchchain.model.federation.FederationOptions;
import com.yahoo.vespa.model.container.component.chain.Chain;
import java.util.Collections;
import java.util.List;
/**
* Represents a search chain in the vespa model.
*
* @author Tony Vaagenes
*/
public class SearchChain extends Chain<Searcher<?>> {
public SearchChain(ChainSpecification specWithoutInnerSearchers) {
super(specWithoutInnerSearchers);
}
public FederationOptions federationOptions() {
return new FederationOptions().setUseByDefault(true);
}
//A list of documents types that this search chain provides results for, empty if unknown
public List<String> getDocumentTypes() {
return Collections.emptyList();
}
@Override
public String toString() {
return "search chain '" + getId() + "'";
}
}
|