diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-03 20:22:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 20:22:43 +0200 |
commit | dde286759cc3384f07b957364d3c9666aff60896 (patch) | |
tree | fa9b6fe4f2caef38b3536f92ceb703f49afc713c /container-search/src/test/java/com/yahoo/vespa | |
parent | de8e6f7128dc6489800eae8ce8cdcc6e3414475e (diff) |
Revert "Use schema-info"
Diffstat (limited to 'container-search/src/test/java/com/yahoo/vespa')
-rw-r--r-- | container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsStreamingSearcherTestCase.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsStreamingSearcherTestCase.java b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsStreamingSearcherTestCase.java index 861be9a3ade..1f074eeae78 100644 --- a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsStreamingSearcherTestCase.java +++ b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsStreamingSearcherTestCase.java @@ -1,6 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.streamingvisitors; +import com.yahoo.config.subscription.ConfigGetter; import com.yahoo.document.select.parser.TokenMgrException; import com.yahoo.messagebus.Trace; import com.yahoo.messagebus.routing.Route; @@ -12,8 +13,6 @@ import com.yahoo.prelude.fastsearch.TimeoutException; import com.yahoo.search.Query; import com.yahoo.search.Result; import com.yahoo.search.result.Hit; -import com.yahoo.search.schema.Schema; -import com.yahoo.search.schema.SchemaInfo; import com.yahoo.search.searchchain.Execution; import com.yahoo.searchlib.aggregation.Grouping; import com.yahoo.vdslib.DocumentSummary; @@ -220,13 +219,12 @@ public class VdsStreamingSearcherTestCase { MockVisitorFactory factory = new MockVisitorFactory(); VdsStreamingSearcher searcher = new VdsStreamingSearcher(factory); - var schema = new Schema.Builder("test"); - schema.add(new com.yahoo.search.schema.DocumentSummary.Builder("default").build()); + ConfigGetter<DocumentdbInfoConfig> getter = new ConfigGetter<>(DocumentdbInfoConfig.class); + DocumentdbInfoConfig config = getter.getConfig("file:src/test/java/com/yahoo/prelude/fastsearch/test/documentdb-info.cfg"); searcher.init("container.0", new SummaryParameters("default"), new ClusterParams("clusterName"), - new DocumentdbInfoConfig.Builder().documentdb(new DocumentdbInfoConfig.Documentdb.Builder().name("test")).build(), - new SchemaInfo(List.of(schema.build()), Map.of())); + config); // Magic query values are used to trigger specific behaviors from mock visitor. checkError(searcher, "/?query=noselection", |