Search in sources :

Example 6 with SearchChainInvocationSpec

use of com.yahoo.search.federation.sourceref.SearchChainInvocationSpec in project vespa by vespa-engine.

the class SearchChainResolverTestCase method lookup_source.

@Test
public void lookup_source() throws Exception {
    SearchChainInvocationSpec res = resolve(sourceId.getName());
    assertIsSourceInProvider(res);
}
Also used : SearchChainInvocationSpec(com.yahoo.search.federation.sourceref.SearchChainInvocationSpec) Test(org.junit.Test)

Example 7 with SearchChainInvocationSpec

use of com.yahoo.search.federation.sourceref.SearchChainInvocationSpec in project vespa by vespa-engine.

the class SearchChainResolverTestCase method lookup_source_search_chain_directly.

@Test
public void lookup_source_search_chain_directly() throws Exception {
    SearchChainInvocationSpec res = resolve(sourceChainInProviderId.stringValue());
    assertIsSourceInProvider(res);
}
Also used : SearchChainInvocationSpec(com.yahoo.search.federation.sourceref.SearchChainInvocationSpec) Test(org.junit.Test)

Example 8 with SearchChainInvocationSpec

use of com.yahoo.search.federation.sourceref.SearchChainInvocationSpec in project vespa by vespa-engine.

the class SearchChainResolverTestCase method resolve.

private SearchChainInvocationSpec resolve(String sourceSpecification, Properties sourceToProviderMap) throws UnresolvedSearchChainException {
    SearchChainInvocationSpec res = searchChainResolver.resolve(ComponentSpecification.fromString(sourceSpecification), sourceToProviderMap);
    assertThat(res.federationOptions, is(federationOptions));
    return res;
}
Also used : SearchChainInvocationSpec(com.yahoo.search.federation.sourceref.SearchChainInvocationSpec)

Aggregations

SearchChainInvocationSpec (com.yahoo.search.federation.sourceref.SearchChainInvocationSpec)8 Test (org.junit.Test)4 Result (com.yahoo.search.Result)1 FederationTarget (com.yahoo.search.federation.selection.FederationTarget)1 SingleTarget (com.yahoo.search.federation.sourceref.SingleTarget)1 SourcesTarget (com.yahoo.search.federation.sourceref.SourcesTarget)1 UnresolvedSearchChainException (com.yahoo.search.federation.sourceref.UnresolvedSearchChainException)1 ErrorMessage (com.yahoo.search.result.ErrorMessage)1 FutureResult (com.yahoo.search.searchchain.FutureResult)1 ArrayList (java.util.ArrayList)1 LinkedHashSet (java.util.LinkedHashSet)1