aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-31 23:32:02 +0200
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:23 +0200
commit1463c41b72fb46fa3bd57be965b0d0681749944d (patch)
tree9f98272202c5405476e548e88805224c804dd668 /config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java
parentd8c94dd62a910e8f66bbe341fa96eef6bb3f1121 (diff)
Remove on Vespa 8
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java')
-rw-r--r--config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java b/config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java
index baee7bec2a2..2f3ad7cfc69 100644
--- a/config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java
+++ b/config-model/src/test/java/com/yahoo/schema/derived/NearestNeighborTestCase.java
@@ -4,7 +4,6 @@ package com.yahoo.schema.derived;
import com.yahoo.component.ComponentId;
import com.yahoo.search.Query;
import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry;
-import com.yahoo.search.query.profile.config.QueryProfileConfigurer;
import com.yahoo.schema.parser.ParseException;
import com.yahoo.vespa.model.container.search.QueryProfiles;
import org.junit.Test;
@@ -22,8 +21,7 @@ public class NearestNeighborTestCase extends AbstractExportingTestCase {
ComponentId.resetGlobalCountersForTests();
DerivedConfiguration c = assertCorrectDeriving("nearestneighbor");
- CompiledQueryProfileRegistry queryProfiles =
- QueryProfileConfigurer.createFromConfig(new QueryProfiles(c.getQueryProfiles(), (level, message) -> {}).getConfig()).compile();
+ CompiledQueryProfileRegistry queryProfiles = CompiledQueryProfileRegistry.fromConfig(new QueryProfiles(c.getQueryProfiles(), (level, message) -> {}).getConfig());
Query q = new Query("?ranking.features.query(q_vec)=[1,2,3,4,5,6]", // length is 6, not 5
queryProfiles.getComponent("default"));
fail("This should fail when q_vec is parsed as a tensor");