Search in sources :

Example 6 with SearchChain

use of com.yahoo.search.searchchain.SearchChain in project vespa by vespa-engine.

the class FederationSearcherTestCase method addChained.

private void addChained(final Searcher searcher, final String sourceName) {
    builder.target(new FederationConfig.Target.Builder().id(sourceName).searchChain(new FederationConfig.Target.SearchChain.Builder().searchChainId(sourceName).timeoutMillis(10000).useByDefault(true)));
    chainRegistry.register(new ComponentId(sourceName), createSearchChain(new ComponentId(sourceName), searcher));
}
Also used : SearchChain(com.yahoo.search.searchchain.SearchChain) FederationConfig(com.yahoo.search.federation.FederationConfig) ComponentId(com.yahoo.component.ComponentId)

Aggregations

SearchChain (com.yahoo.search.searchchain.SearchChain)6 Test (org.junit.Test)3 ComponentId (com.yahoo.component.ComponentId)2 HandlersConfigurerTestWrapper (com.yahoo.container.core.config.testutil.HandlersConfigurerTestWrapper)2 StringValue (com.yahoo.jrt.StringValue)1 Searcher (com.yahoo.search.Searcher)1 FederationConfig (com.yahoo.search.federation.FederationConfig)1 SearchHandler (com.yahoo.search.handler.SearchHandler)1 SearchChainRegistry (com.yahoo.search.searchchain.SearchChainRegistry)1