Search in sources :

Example 6 with DerivedConfiguration

use of com.yahoo.searchdefinition.derived.DerivedConfiguration in project vespa by vespa-engine.

the class ImplicitSearchFieldsTestCase method testRequireThatDerivedConfigurationWorks.

@Test
public void testRequireThatDerivedConfigurationWorks() throws IOException, ParseException {
    SearchBuilder sb = new SearchBuilder();
    sb.importFile("src/test/examples/nextgen/simple.sd");
    sb.build();
    assertNotNull(sb.getSearch());
    new DerivedConfiguration(sb.getSearch(), sb.getRankProfileRegistry(), new QueryProfileRegistry());
}
Also used : DerivedConfiguration(com.yahoo.searchdefinition.derived.DerivedConfiguration) SearchBuilder(com.yahoo.searchdefinition.SearchBuilder) QueryProfileRegistry(com.yahoo.search.query.profile.QueryProfileRegistry) Test(org.junit.Test)

Aggregations

DerivedConfiguration (com.yahoo.searchdefinition.derived.DerivedConfiguration)6 QueryProfileRegistry (com.yahoo.search.query.profile.QueryProfileRegistry)4 Test (org.junit.Test)3 Index (com.yahoo.searchdefinition.Index)1 Search (com.yahoo.searchdefinition.Search)1 SearchBuilder (com.yahoo.searchdefinition.SearchBuilder)1 UnproperSearch (com.yahoo.searchdefinition.UnproperSearch)1 SDField (com.yahoo.searchdefinition.document.SDField)1 AbstractSearchCluster (com.yahoo.vespa.model.search.AbstractSearchCluster)1 DocumentDatabase (com.yahoo.vespa.model.search.DocumentDatabase)1 IndexedSearchCluster (com.yahoo.vespa.model.search.IndexedSearchCluster)1 Map (java.util.Map)1