Skip to content

Commit

Permalink
misc(search-explain): set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Jan 25, 2025
1 parent a8d6c54 commit 55d6867
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ public ResponseEntity<ExplainResponse> explainSearchQuery(
@Nullable
List<SortCriterion> sortCriteria,
@Parameter(name = "searchFlags", description = "Optional configuration flags.")
@RequestParam(value = "searchFlags", required = false)
@RequestParam(
value = "searchFlags",
required = false,
defaultValue = "{\"fulltext\":true}")
@Nullable
String searchFlags)
throws JsonProcessingException {
Expand Down Expand Up @@ -338,7 +341,10 @@ public ResponseEntity<String> explainSearchQueryDiff(
@Nullable
List<SortCriterion> sortCriteria,
@Parameter(name = "searchFlags", description = "Optional configuration flags.")
@RequestParam(value = "searchFlags", required = false)
@RequestParam(
value = "searchFlags",
required = false,
defaultValue = "{\"fulltext\":true}")
@Nullable
String searchFlags)
throws JsonProcessingException {
Expand Down

0 comments on commit 55d6867

Please sign in to comment.