tihom88 commented on code in PR #2234:
URL: https://github.com/apache/jackrabbit-oak/pull/2234#discussion_r2058209584
##########
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 {
+ // Store the inference configuration in the index metadata so that it
can be used by the inference service
Review Comment:
We have enricherConfig in inferenceConfig, hence we do have notion of
enrichment service. Updated the comment.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]