From 6825311c9b70393d75c0dfa938c4f1ca3520572d Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Fri, 21 Jun 2024 18:28:52 +0200 Subject: [PATCH] Small fixes --- .../java/org/elasticsearch/index/query/NestedQueryBuilder.java | 2 +- .../xpack/inference/mapper/SemanticTextFieldMapperTests.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java b/server/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java index eea45ab9e116b..8dfe1bb3ca474 100644 --- a/server/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java +++ b/server/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java @@ -274,7 +274,7 @@ protected Query doToQuery(SearchExecutionContext context) throws IOException { /** * Returns the primitive Lucene query for a nested query given the primitive query to wrap - * @param innerQuery query to wraqp in a nested query + * @param innerQuery query to wrap in a nested query * @param path nested path * @param scoreMode score mode to use * @param ignoreUnmapped whether to ignore unmapped fields diff --git a/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java b/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java index fe47ea871e12b..de2b84c5f9412 100644 --- a/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java +++ b/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java @@ -534,6 +534,7 @@ private MapperService mapperServiceForFieldWithModelSettings( return mapperService; } + @Override protected void assertExistsQuery(MappedFieldType fieldType, Query query, LuceneDocument fields) { // Until a doc is indexed, the query is rewritten as match no docs assertThat(query, instanceOf(MatchNoDocsQuery.class));