From 862d5ce28ea429f103bb5ca5a353c8a13e99afa5 Mon Sep 17 00:00:00 2001 From: honhimW Date: Fri, 1 Mar 2024 17:53:04 +0800 Subject: [PATCH] Update search score tests --- src/test/java/io/github/honhimw/ms/client/SearchTests.java | 2 ++ .../io/github/honhimw/ms/client/TypedDetailsSearchTests.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/test/java/io/github/honhimw/ms/client/SearchTests.java b/src/test/java/io/github/honhimw/ms/client/SearchTests.java index 731add0..8d6c4d8 100644 --- a/src/test/java/io/github/honhimw/ms/client/SearchTests.java +++ b/src/test/java/io/github/honhimw/ms/client/SearchTests.java @@ -43,6 +43,7 @@ void initIndexes() { prepareData(); indexes = blockingClient.indexes(); search = indexes.search(INDEX); + blockingClient.experimentalFeatures(experimentalFeaturesSettings -> experimentalFeaturesSettings.configure(builder -> builder.scoreDetails(true))); } @Order(1) @@ -163,6 +164,7 @@ void searchWithHighlight() { void resetSetting() { TaskInfo reset = indexes.settings(INDEX).reset(); await(reset); + blockingClient.experimentalFeatures(experimentalFeaturesSettings -> experimentalFeaturesSettings.configure(builder -> builder.scoreDetails(false))); } } diff --git a/src/test/java/io/github/honhimw/ms/client/TypedDetailsSearchTests.java b/src/test/java/io/github/honhimw/ms/client/TypedDetailsSearchTests.java index 10b4232..0d23a5a 100644 --- a/src/test/java/io/github/honhimw/ms/client/TypedDetailsSearchTests.java +++ b/src/test/java/io/github/honhimw/ms/client/TypedDetailsSearchTests.java @@ -43,6 +43,7 @@ void initIndexes() { prepareData(); indexes = blockingClient.indexes(); typedDetailsSearch = indexes.searchWithDetails(INDEX, Movie.class); + blockingClient.experimentalFeatures(experimentalFeaturesSettings -> experimentalFeaturesSettings.configure(builder -> builder.scoreDetails(true))); } @Order(1) @@ -107,6 +108,7 @@ void searchWithHighlight() { void resetSetting() { TaskInfo reset = indexes.settings(INDEX).reset(); await(reset); + blockingClient.experimentalFeatures(experimentalFeaturesSettings -> experimentalFeaturesSettings.configure(builder -> builder.scoreDetails(false))); } }