Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Jun 21, 2024
1 parent 384a5ad commit 6825311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6825311

Please sign in to comment.