File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1414import org .elasticsearch .common .io .stream .StreamOutput ;
1515import org .elasticsearch .common .unit .Fuzziness ;
1616import org .elasticsearch .index .query .QueryBuilder ;
17+ import org .elasticsearch .xpack .esql .action .EsqlCapabilities ;
1718import org .elasticsearch .xpack .esql .capabilities .PostOptimizationVerificationAware ;
1819import org .elasticsearch .xpack .esql .common .Failure ;
1920import org .elasticsearch .xpack .esql .common .Failures ;
@@ -226,7 +227,7 @@ protected TypeResolution resolveNonQueryParamTypes() {
226227 }
227228
228229 // TODO Extract common logic for validating options
229- if (options () != null ) {
230+ if (options () != null && EsqlCapabilities . Cap . MATCH_FUNCTION_OPTIONS . isEnabled () ) {
230231 // MapExpression does not have a DataType associated with it
231232 resolution = isMapExpression (options (), sourceText (), SECOND );
232233 if (resolution .unresolved ()) {
@@ -247,7 +248,7 @@ private Map<String, Object> parseOptions() throws InvalidArgumentException {
247248 // Match is lenient by default to avoid failing on incompatible types
248249 matchOptions .put (LENIENT_FIELD .getPreferredName (), true );
249250
250- if (options () == null ) {
251+ if (options () == null || EsqlCapabilities . Cap . MATCH_FUNCTION_OPTIONS . isEnabled () == false ) {
251252 return matchOptions ;
252253 }
253254
You can’t perform that action at this time.
0 commit comments