Skip to content

Commit

Permalink
Update search score tests
Browse files Browse the repository at this point in the history
  • Loading branch information
honhimW committed Mar 1, 2024
1 parent 8a4635a commit 862d5ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/io/github/honhimw/ms/client/SearchTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)));
}

}

0 comments on commit 862d5ce

Please sign in to comment.