Skip to content

Commit e1afe1d

Browse files
.asQueryBuilder() -> .toQueryBuilder() (#125154)
1 parent 00c4f59 commit e1afe1d

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext/QueryStringTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected Expression build(Source source, List<Expression> args) {
7979
// We need to add the QueryBuilder to the match expression, as it is used to implement equals() and hashCode() and
8080
// thus test the serialization methods. But we can only do this if the parameters make sense .
8181
if (args.get(0).foldable()) {
82-
QueryBuilder queryBuilder = TRANSLATOR_HANDLER.asQuery(qstr).asBuilder();
82+
QueryBuilder queryBuilder = TRANSLATOR_HANDLER.asQuery(qstr).toQueryBuilder();
8383
qstr.replaceQueryBuilder(queryBuilder);
8484
}
8585
return qstr;

0 commit comments

Comments
 (0)