aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/search/searchchain/SearchChain.java
blob: 6f9e72117c8de40f087a5f6997d6b72e0ed16aaa (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 Vespa.ai. 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() + "'";
    }

}