Skip to content

Commit

Permalink
index does not throw IOException anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase committed Oct 11, 2023
1 parent bcded20 commit 7c29dd2
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,7 @@ protected void indexScriptValues(
int doc,
DocumentParserContext documentParserContext
) {
fieldType().scriptValues.valuesForDoc(searchLookup, readerContext, doc, geometry -> {
try {
index(documentParserContext, geometry);
} catch (IOException e) {
throw new UncheckedIOException(e); // only thrown by MultiFields which is always null
}
});
fieldType().scriptValues.valuesForDoc(searchLookup, readerContext, doc, geometry -> index(documentParserContext, geometry));
}

@Override
Expand Down

0 comments on commit 7c29dd2

Please sign in to comment.