diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-11 14:21:09 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-11 14:36:14 +0100 |
commit | 695d6e34ac633f137dbd71816aaa3392e4d8725c (patch) | |
tree | e2b7919d7128d723428949341b749d2d135093a3 /config-model/src/test | |
parent | c77d54ba02163c07d1f4eb08ab1dc766720f7c1f (diff) |
- Let the limit for large expressions follow LargeExpressions.
- Remove the use of FeatureFlags.largeRankProfile.
Diffstat (limited to 'config-model/src/test')
2 files changed, 3 insertions, 4 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java index c6a10c5530b..fda3e6c16c3 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java @@ -104,8 +104,7 @@ public class ExportingTestCase extends AbstractExportingTestCase { @Test public void testRankExpression() throws IOException, ParseException { - assertCorrectDeriving("rankexpression", null, - new TestProperties().largeRankExpressionLimit(1024), new TestableDeployLogger()); + assertCorrectDeriving("rankexpression"); } @Test diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionsTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionsTestCase.java index ebc8ceacc50..f4742be6b30 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionsTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionsTestCase.java @@ -115,9 +115,9 @@ public class RankingExpressionsTestCase extends AbstractSchemaTestCase { @Test public void testLargeInheritedFunctions() throws IOException, ParseException { - ModelContext.Properties properties = new TestProperties().largeRankExpressionLimit(50); + ModelContext.Properties properties = new TestProperties(); RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); - LargeRankExpressions largeExpressions = new LargeRankExpressions(new MockFileRegistry()); + LargeRankExpressions largeExpressions = new LargeRankExpressions(new MockFileRegistry(), 50); QueryProfileRegistry queryProfiles = new QueryProfileRegistry(); ImportedMlModels models = new ImportedMlModels(); Schema schema = createSearch("src/test/examples/largerankingexpressions", properties, rankProfileRegistry); |