Skip to content

Commit

Permalink
Fix match query in search tif source configs request to use string va…
Browse files Browse the repository at this point in the history
…lue of enum
  • Loading branch information
eirsep committed Jul 18, 2024
1 parent 8af8542 commit 65ad1ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public void getIocTypeToIndices(ActionListener<Map<String, List<String>>> listen
String stateFieldName = getStateFieldName();
BoolQueryBuilder stateQueryBuilder = QueryBuilders.boolQuery()
.should(QueryBuilders.matchQuery(stateFieldName, AVAILABLE.toString()));
stateQueryBuilder.should(QueryBuilders.matchQuery(stateFieldName, REFRESHING));
stateQueryBuilder.should(QueryBuilders.matchQuery(stateFieldName, REFRESHING.toString()));
queryBuilder.must(stateQueryBuilder);

searchRequest.source().query(queryBuilder);
Expand Down

0 comments on commit 65ad1ad

Please sign in to comment.