diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-10-15 19:00:17 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-10-15 19:00:17 +0200 |
commit | cf7c0cb612a2cbc1cd63e7043eae28e5a5ecba06 (patch) | |
tree | 38309e09d8ec0f4ebbf702343b3f0a7590dbcaa1 /config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java | |
parent | 813c270c2ea80953c7b09aac56dc6a5c254aca1e (diff) |
search -> schema
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java index 1b8160e0123..7ffb20859e9 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankProfileSearchFixture.java @@ -12,7 +12,7 @@ import com.yahoo.path.Path; import com.yahoo.search.query.profile.QueryProfileRegistry; import com.yahoo.searchdefinition.RankProfile; import com.yahoo.searchdefinition.RankProfileRegistry; -import com.yahoo.searchdefinition.Search; +import com.yahoo.searchdefinition.Schema; import com.yahoo.searchdefinition.SearchBuilder; import com.yahoo.searchdefinition.parser.ParseException; import ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels; @@ -43,7 +43,7 @@ class RankProfileSearchFixture { new XGBoostImporter()); private final RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); private final QueryProfileRegistry queryProfileRegistry; - private final Search search; + private final Schema schema; private final Map<String, RankProfile> compiledRankProfiles = new HashMap<>(); private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); @@ -79,7 +79,7 @@ class RankProfileSearchFixture { "}"; builder.importString(sdContent); builder.build(); - search = builder.getSearch(); + schema = builder.getSearch(); } public void assertFirstPhaseExpression(String expExpression, String rankProfile) { @@ -106,7 +106,7 @@ class RankProfileSearchFixture { } public RankProfile compileRankProfile(String rankProfile, Path applicationDir) { - RankProfile compiled = rankProfileRegistry.get(search, rankProfile) + RankProfile compiled = rankProfileRegistry.get(schema, rankProfile) .compile(queryProfileRegistry, new ImportedMlModels(applicationDir.toFile(), executor, importers)); compiledRankProfiles.put(rankProfile, compiled); @@ -115,7 +115,7 @@ class RankProfileSearchFixture { /** Returns the given uncompiled profile */ public RankProfile rankProfile(String rankProfile) { - return rankProfileRegistry.get(search, rankProfile); + return rankProfileRegistry.get(schema, rankProfile); } /** Returns the given compiled profile, or null if not compiled yet or not present at all */ @@ -123,6 +123,6 @@ class RankProfileSearchFixture { return compiledRankProfiles.get(rankProfile); } - public Search search() { return search; } + public Schema search() { return schema; } } |