Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-13973: Deprecate existing Tika integration to open door to new ways (#3669)

Eric Pughdf0fd5476d75
diff --git a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java
index 5040abc6425..014d56caae4 100644
--- a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java
+++ b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java
@@ -58,7 +58,13 @@ import org.slf4j.LoggerFactory;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
-/** The class responsible for loading extracted content into Solr. */
+/**
+ * The class responsible for loading extracted content into Solr.
+ *
+ * @deprecated Will be replaced with something similar that calls out to a separate Tika Server
+ * process running in its own JVM.
+ */
+@Deprecated(since = "9.10.0")
public class ExtractingDocumentLoader extends ContentStreamLoader {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
diff --git a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java
index 6caef96cf62..c9a319bc0bb 100644
--- a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java
+++ b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java
@@ -33,7 +33,11 @@ import org.apache.tika.config.TikaConfig;
/**
* Handler for rich documents like PDF or Word or any other file format that Tika handles that need
* the text to be extracted first from the document.
+ *
+ * @deprecated Will be replaced with something similar that calls out to a separate Tika Server
+ * process running in its own JVM.
*/
+@Deprecated(since = "9.10.0")
public class ExtractingRequestHandler extends ContentStreamHandlerBase
implements SolrCoreAware, PermissionNameProvider {