Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wtt40122 committed Aug 23, 2023
1 parent 767086f commit 0f96e06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void exitRegexExpr(EsQueryParser.RegexExprContext ctx) {
String param = ctx.getChild(0).getText();
String value = valueProperty.get(ctx.getChild(2)).getValue().toString();
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder()
.query(new BoolQueryBuilder().must(QueryBuilders.wildcardQuery(param, value)));
.query(new BoolQueryBuilder().must(QueryBuilders.regexpQuery(param, value)));
treeProperty.put(ctx, sourceBuilder);
}

Expand Down

0 comments on commit 0f96e06

Please sign in to comment.