tihom88 commented on code in PR #2291: URL: https://github.com/apache/jackrabbit-oak/pull/2291#discussion_r2084078866
########## oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/inference/InferenceConfig.java: ########## @@ -79,32 +85,38 @@ private InferenceConfig() { currentInferenceConfig = activeInferenceConfig; isInferenceEnabled = false; enricherStatus = EnricherStatus.NOOP; + statisticsProvider = StatisticsProvider.NOOP; } finally { lock.writeLock().unlock(); } } + public static void reInitialize(NodeStore nodeStore, StatisticsProvider statisticsProvider, String inferenceConfigPath, boolean isInferenceEnabled) { + reInitialize(nodeStore, statisticsProvider, inferenceConfigPath, isInferenceEnabled, true); + } + + @Deprecated Review Comment: Removed deprecation we can keep both constructors. -- 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