Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws committed Apr 27, 2024
1 parent 14f5086 commit 4ba36b0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private int getMaxTokenCount(final Map<String, Object> sourceAndMetadataMap) {
}
// if the index is specified in the metadata, read maxTokenCount from the index setting
String maxTokenCountString = indexMetadata.getSettings().get("index.analyze.max_token_count");
// if maxTokenCount is not specified in the index, return the default setting
if (Objects.isNull(maxTokenCountString)) {
return IndexSettings.MAX_TOKEN_COUNT_SETTING.get(environment.settings());
}
Expand Down

0 comments on commit 4ba36b0

Please sign in to comment.