Apache Solr open-source search software
SOLR-17958 Deprecate TikaLanguageIdentifierUpdateProcessor (#3776)
Jan Høydahl6b33f387423a
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 4ff226cbe78..4680b7677e6 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -389,6 +389,8 @@ Other Changes* SOLR-17956: XLSXResponseWriter has been deprecated and will be removed in a future release. (Jan Høydahl)+* SOLR-17958: The Tika Language Identifier is deprecated. Use one of the other detectors instead. (Jan Høydahl)+* SOLR-17952: Stream decorator test refactoring - use underscore rather than dot in aliases (Andy Webb)================== 9.9.1 ==================diff --git a/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessor.java b/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessor.javaindex 97fb7917fd6..bde2f62437c 100644--- a/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessor.java+++ b/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessor.java@@ -34,7 +34,9 @@ import org.slf4j.LoggerFactory;* href="https://solr.apache.org/guide/solr/latest/indexing-guide/language-detection.html#configuring-tika-language-detection">https://solr.apache.org/guide/solr/latest/indexing-guide/language-detection.html#configuring-tika-language-detection</a>** @since 3.5+ * @deprecated Since 9.10, use {@link OpenNLPLangDetectUpdateProcessor} instead.*/+@Deprecated(since = "9.10")public class TikaLanguageIdentifierUpdateProcessor extends LanguageIdentifierUpdateProcessor {private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());diff --git a/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactory.java b/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactory.javaindex 66cb977ed50..1728390c065 100644--- a/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactory.java+++ b/solr/modules/langid/src/java/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactory.java@@ -43,7 +43,9 @@ import org.apache.solr.util.plugin.SolrCoreAware;* href="https://solr.apache.org/guide/solr/latest/indexing-guide/language-detection.html#configuring-tika-language-detection">https://solr.apache.org/guide/solr/latest/indexing-guide/language-detection.html#configuring-tika-language-detection</a>** @since 3.5+ * @deprecated Since 9.10, use {@link OpenNLPLangDetectUpdateProcessorFactory} instead.*/+@Deprecated(since = "9.10")public class TikaLanguageIdentifierUpdateProcessorFactory extends UpdateRequestProcessorFactoryimplements SolrCoreAware, LangIdParams {diff --git a/solr/modules/langid/src/test/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactoryTest.java b/solr/modules/langid/src/test/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactoryTest.javaindex b110b397b05..3c47c2a9de0 100644--- a/solr/modules/langid/src/test/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactoryTest.java+++ b/solr/modules/langid/src/test/org/apache/solr/update/processor/TikaLanguageIdentifierUpdateProcessorFactoryTest.java@@ -20,6 +20,7 @@ import org.apache.solr.common.SolrInputDocument;import org.apache.solr.common.params.ModifiableSolrParams;import org.junit.Test;+@SuppressWarnings("deprecation")public class TikaLanguageIdentifierUpdateProcessorFactoryTestextends LanguageIdentifierUpdateProcessorFactoryTestCase {@Overridediff --git a/solr/solr-ref-guide/modules/indexing-guide/pages/language-detection.adoc b/solr/solr-ref-guide/modules/indexing-guide/pages/language-detection.adocindex f4f5ab158f3..a2ab17638fa 100644--- a/solr/solr-ref-guide/modules/indexing-guide/pages/language-detection.adoc+++ b/solr/solr-ref-guide/modules/indexing-guide/pages/language-detection.adoc@@ -55,6 +55,11 @@ Here is an example of a minimal Tika `langid` configuration in `solrconfig.xml`:</processor>----+[IMPORTANT]+====+This detector is deprecated and may be removed in a future version.+====+=== Configuring LangDetect Language DetectionHere is an example of a minimal LangDetect `langid` configuration in `solrconfig.xml`:diff --git a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adocindex a99ad2b4e4f..d07e8d8081d 100644--- a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc+++ b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc@@ -82,6 +82,8 @@ Java has removed support for the Security Manager starting with Java 24; therefoThe `XLSXResponseWriter` is now deprecated.+The Tika Language Identifier is deprecated. Use one of the other detectors instead.+The Extraction module can now extract documents using an external Tika Server.The local in-process Tika 1.x extractor backend is deprecated and will go away in 10.0.