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 (#1178)

Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep authored Jul 18, 2024
1 parent 8af8542 commit cf31d58
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 cf31d58

Please sign in to comment.