janhoy commented on code in PR #3670:
URL: https://github.com/apache/solr/pull/3670#discussion_r2373583885
##########
solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java:
##########
@@ -77,20 +63,37 @@ public void inform(SolrCore core) {
parseContextConfig =
new ParseContextConfig(core.getResourceLoader(),
parseContextConfigLoc);
}
+
+ // Initialize backend factory once; backends are created lazily on demand
+ String tikaServerUrl = (String) initArgs.get(TIKASERVER_URL);
+ backendFactory =
+ new ExtractionBackendFactory(core, tikaConfigLoc,
parseContextConfig, tikaServerUrl);
+
+ // Choose default backend name (do not instantiate yet)
+ String backendName = (String)
initArgs.get(ExtractingParams.EXTRACTION_BACKEND);
+ defaultBackendName =
Review Comment:
Agree, better use `NAME` consistently.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]