Skip to content

Commit d8fdaf5

Browse files
committed
Fix merge with main
1 parent e08c4fd commit d8fdaf5

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Match.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
import org.elasticsearch.xpack.esql.core.tree.NodeInfo;
3030
import org.elasticsearch.xpack.esql.core.tree.Source;
3131
import org.elasticsearch.xpack.esql.core.type.DataType;
32-
import org.elasticsearch.xpack.esql.core.type.MultiTypeEsField;
3332
import org.elasticsearch.xpack.esql.core.type.DataTypeConverter;
33+
import org.elasticsearch.xpack.esql.core.type.MultiTypeEsField;
3434
import org.elasticsearch.xpack.esql.core.util.NumericUtils;
3535
import org.elasticsearch.xpack.esql.expression.function.Example;
3636
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
@@ -393,7 +393,7 @@ public String functionType() {
393393

394394
@Override
395395
protected Query translate(TranslatorHandler handler) {
396-
Expression fieldExpression = field;
396+
Expression fieldExpression = field();
397397
// Field may be converted to other data type (field_name :: data_type), so we need to check the original field
398398
if (fieldExpression instanceof AbstractConvertFunction convertFunction) {
399399
fieldExpression = convertFunction.field();
@@ -405,7 +405,7 @@ protected Query translate(TranslatorHandler handler) {
405405
fieldName = multiTypeEsField.getName();
406406
}
407407
// Make query lenient so mixed field types can be queried when a field type is incompatible with the value provided
408-
return new MatchQuery(source(), fieldName, queryAsObject(), Map.of("lenient", "true"));
408+
return new MatchQuery(source(), fieldName, queryAsObject(), optionsMap());
409409
}
410410

411411
throw new IllegalArgumentException("Match must have a field attribute as the first argument");

0 commit comments

Comments
 (0)