diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/QueryBuilderResolver.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/QueryBuilderResolver.java index b8cb199dd7888..ef3828a3f2fbb 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/QueryBuilderResolver.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/QueryBuilderResolver.java @@ -55,7 +55,7 @@ private static QueryRewriteContext queryRewriteContext(TransportActionServices s ResolvedIndices resolvedIndices = ResolvedIndices.resolveWithIndexNamesAndOptions( indexNames.toArray(String[]::new), IndexResolver.FIELD_CAPS_INDICES_OPTIONS, - services.clusterService().state().metadata().getProject(), + services.projectResolver().getProjectMetadata(services.clusterService().state()), services.indexNameExpressionResolver(), services.transportService().getRemoteClusterService(), System.currentTimeMillis() diff --git a/x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle b/x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle index 436767ee1bd16..bccb5afde732c 100644 --- a/x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle +++ b/x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle @@ -35,7 +35,6 @@ tasks.named("yamlRestTest").configure { '^deprecation/10_basic/*', '^dlm/10_usage/*', '^esql/60_usage/*', - '^esql/180_match_operator/*', '^health/10_usage/*', '^ilm/80_health/*', '^logsdb/10_usage/*',