nit0906 commented on code in PR #2234: URL: https://github.com/apache/jackrabbit-oak/pull/2234#discussion_r2055258705
########## oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticIndexHelper.java: ########## @@ -97,9 +104,47 @@ private static ObjectBuilder<TypeMapping> loadMappings(@NotNull TypeMapping.Buil if (indexDefinition.inferenceDefinition != null) { mapInferenceDefinition(builder, indexDefinition.inferenceDefinition); } + if (InferenceConfig.getInstance().isEnabled()) { + mapInferenceConfig(builder, indexDefinition, InferenceConfig.getInstance()); + } return builder; } + private static void mapInferenceConfig(TypeMapping.Builder builder, @NotNull ElasticIndexDefinition indexDefinition, @NotNull InferenceConfig inferenceConfig) { + String indexName = PathUtils.getName(indexDefinition.getIndexName()); + InferenceIndexConfig inferenceIndexConfig; +// try { Review Comment: remove commented line. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org