Apache Solr open-source search software
LUCENE-9562: All binary analysis packages (and corresponding Maven artifacts) with names containing '-analyzers-' have been renamed to '-analysis-'. (#1968)
Dawid Weissc5cf13259e36
diff --git a/gradle/ant-compat/artifact-naming.gradle b/gradle/ant-compat/artifact-naming.gradleindex 18b2c184b65..df6a22f95c8 100644--- a/gradle/ant-compat/artifact-naming.gradle+++ b/gradle/ant-compat/artifact-naming.gradle@@ -24,9 +24,3 @@ configure(subprojects.findAll { it.path.contains(':solr:contrib:') }) {configure(project(":solr:contrib:extraction")) {archivesBaseName = "solr-cell"}--configure(subprojects.findAll { it.path.contains(':lucene:analysis:') }) {- project.archivesBaseName = project.archivesBaseName.replace("-analysis-", "-analyzers-")-}--diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 28067e70f03..4e4da5d2e36 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -12,6 +12,10 @@ System RequirementsAPI Changes+* LUCENE-9562: All binary analysis packages (and corresponding+ Maven artifacts) with names containing '-analyzers-' have been renamed+ to '-analysis-'. (Dawid Weiss)+* LUCENE-8474: RAMDirectory and associated deprecated classes have beenremoved. (Dawid Weiss)diff --git a/lucene/MIGRATE.md b/lucene/MIGRATE.mdindex 3c70852bc7e..0c80e648765 100644--- a/lucene/MIGRATE.md+++ b/lucene/MIGRATE.md@@ -11,13 +11,18 @@ the default stop tags returned by `JapaneseAnalyzer.getDefaultStopTags()` (i.e.o.a.l.collation.ICUCollationAnalyzer is renamed to o.a.l.a.icu.ICUCollationKeyAnalyzer.Also, its dependant classes are renamed in the same way.+## Rename of binary artifacts from '**-analyzers-**' to '**-analysis-**' (LUCENE-9562)++All binary analysis packages (and corresponding Maven artifacts) have been renamed and are+now consistent with repository module 'analysis'.+## Base and concrete analysis factories are moved / package renamed (LUCENE-9317)1. Base analysis factories are moved to `lucene-core`, also their package names are renamed.-- o.a.l.a.util.TokenizerFactory (lucene-analyzers-common) is moved to o.a.l.a.TokenizerFactory (lucene-core)-- o.a.l.a.util.CharFilterFactory (lucene-analyzers-common) is moved to o.a.l.a.CharFilterFactory (lucene-core)-- o.a.l.a.util.TokenFilterFactory (lucene-analyzers-common) is moved to o.a.l.a.TokenFilterFactory (lucene-core)+- o.a.l.a.util.TokenizerFactory (lucene-analysis-common) is moved to o.a.l.a.TokenizerFactory (lucene-core)+- o.a.l.a.util.CharFilterFactory (lucene-analysis-common) is moved to o.a.l.a.CharFilterFactory (lucene-core)+- o.a.l.a.util.TokenFilterFactory (lucene-analysis-common) is moved to o.a.l.a.TokenFilterFactory (lucene-core)The service provider files placed in `META-INF/services` for custom analysis factories should be renamed as follows:@@ -27,7 +32,7 @@ The service provider files placed in `META-INF/services` for custom analysis fac2. o.a.l.a.standard.StandardTokenizerFactory is moved to `lucene-core` module.-3. o.a.l.a.standard package in `lucene-analyzers-common` module is split into o.a.l.a.classic and o.a.l.a.email.+3. o.a.l.a.standard package in `lucene-analysis-common` module is split into o.a.l.a.classic and o.a.l.a.email.## RegExpQuery now rejects invalid backslashes (LUCENE-9370)diff --git a/lucene/analysis/README.txt b/lucene/analysis/README.txtindex 9961f3fb2d2..09857df25c8 100644--- a/lucene/analysis/README.txt+++ b/lucene/analysis/README.txt@@ -13,37 +13,37 @@ Please join the Lucene-User mailing list by sending a message to:FILES-lucene-analyzers-common-XX.jar+lucene-analysis-common-XX.jarThe primary analysis module library, containing general-purpose analysiscomponents and support for various languages.-lucene-analyzers-icu-XX.jar+lucene-analysis-icu-XX.jarAn add-on analysis library that provides improved Unicode support viaInternational Components for Unicode (ICU). Note: this module depends onthe ICU4j jar file (version >= 4.6.0)-lucene-analyzers-kuromoji-XX.jar+lucene-analysis-kuromoji-XX.jarAn analyzer with morphological analysis for Japanese.-lucene-analyzers-morfologik-XX.jar+lucene-analysis-morfologik-XX.jarAn analyzer using the Morfologik stemming library.-lucene-analyzers-nori-XX.jar+lucene-analysis-nori-XX.jarAn analyzer with morphological analysis for Korean.-lucene-analyzers-opennlp-XX.jar+lucene-analysis-opennlp-XX.jarAn analyzer using the OpenNLP natural-language processing library.-lucene-analyzers-phonetic-XX.jar+lucene-analysis-phonetic-XX.jarAn add-on analysis library that provides phonetic encoders via ApacheCommons-Codec. Note: this module depends on the commons-codec jarfile-lucene-analyzers-smartcn-XX.jar+lucene-analysis-smartcn-XX.jarAn add-on analysis library that provides word segmentation for SimplifiedChinese.-lucene-analyzers-stempel-XX.jar+lucene-analysis-stempel-XX.jarAn add-on analysis library that contains a universal algorithmic stemmer,including tables for the Polish language.diff --git a/lucene/analysis/phonetic/src/java/overview.html b/lucene/analysis/phonetic/src/java/overview.htmlindex c99ad03253c..0cfc5a91720 100644--- a/lucene/analysis/phonetic/src/java/overview.html+++ b/lucene/analysis/phonetic/src/java/overview.html@@ -17,7 +17,7 @@<html><head><title>- analyzers-phonetic+ analysis-phonetic</title></head><body>diff --git a/lucene/core/src/java/org/apache/lucene/analysis/package-info.java b/lucene/core/src/java/org/apache/lucene/analysis/package-info.javaindex 83736aec4c3..b847d16b388 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/package-info.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/package-info.java@@ -158,7 +158,7 @@* supplies a large family of <code>Analyzer</code> classes that deliver useful* analysis chains. The most common of these is the <a href="{@docRoot}/org/apache/lucene/analysis/standard/StandardAnalyzer.html">StandardAnalyzer</a>.* Many applications will have a long and industrious life with nothing more- * than the <code>StandardAnalyzer</code>. The <a href="{@docRoot}/../analysis/common/overview-summary.html">analyzers-common</a>+ * than the <code>StandardAnalyzer</code>. The <a href="{@docRoot}/../analysis/common/overview-summary.html">analysis-common</a>* library provides many pre-existing analyzers for various languages.* The analysis-common library also allows to configure a custom Analyzer without subclassing using the* <a href="{@docRoot}/../analysis/common/org/apache/lucene/analysis/custom/CustomAnalyzer.html">CustomAnalyzer</a>@@ -253,7 +253,7 @@* Tokenizer, and TokenFilter(s) <i>(optional)</i> — or components you* create, or a combination of existing and newly created components. Before* pursuing this approach, you may find it worthwhile to explore the- * <a href="{@docRoot}/../analysis/common/overview-summary.html">analyzers-common</a> library and/or ask on the+ * <a href="{@docRoot}/../analysis/common/overview-summary.html">analysis-common</a> library and/or ask on the* <a href="http://lucene.apache.org/core/discussion.html">[email protected] mailing list</a> first to see if what you* need already exists. If you are still committed to creating your own* Analyzer, have a look at the source code of any one of the many samplesdiff --git a/lucene/core/src/java/overview.html b/lucene/core/src/java/overview.htmlindex 9338742bd30..2b1c0a6bb5a 100644--- a/lucene/core/src/java/overview.html+++ b/lucene/core/src/java/overview.html@@ -72,7 +72,7 @@ an enumeration of token {@link org.apache.lucene.util.Attribute Attribute}s.&nbsA TokenStream can be composed by applying {@link org.apache.lucene.analysis.TokenFilter TokenFilter}sto the output of a {@link org.apache.lucene.analysis.Tokenizer Tokenizer}. Tokenizers and TokenFilters are strung together and applied with an {@link org.apache.lucene.analysis.Analyzer Analyzer}. -<a href="../analysis/common/overview-summary.html">analyzers-common</a> provides a number of Analyzer implementations, including+<a href="../analysis/common/overview-summary.html">analysis-common</a> provides a number of Analyzer implementations, including<a href="../analysis/common/org/apache/lucene/analysis/core/StopAnalyzer.html">StopAnalyzer</a>and the grammar-based <a href="org/apache/lucene/analysis/standard/StandardAnalyzer.html">StandardAnalyzer</a>.</li>@@ -147,11 +147,11 @@ index for all the files contained in a directory.</li>queries and searches an index.</li></ul>To demonstrate these, try something like:-<blockquote><code>> <b>java -cp lucene-core.jar:lucene-demo.jar:lucene-analyzers-common.jar org.apache.lucene.demo.IndexFiles -index index -docs rec.food.recipes/soups</b></code>+<blockquote><code>> <b>java -cp lucene-core.jar:lucene-demo.jar:lucene-analysis-common.jar org.apache.lucene.demo.IndexFiles -index index -docs rec.food.recipes/soups</b></code><br><code>adding rec.food.recipes/soups/abalone-chowder</code><br><code> </code>[ ... ]-<p><code>> <b>java -cp lucene-core.jar:lucene-demo.jar:lucene-queryparser.jar:lucene-analyzers-common.jar org.apache.lucene.demo.SearchFiles</b></code>+<p><code>> <b>java -cp lucene-core.jar:lucene-demo.jar:lucene-queryparser.jar:lucene-analysis-common.jar org.apache.lucene.demo.SearchFiles</b></code><br><code>Query: <b>chowder</b></code><br><code>Searching for: chowder</code><br><code>34 total matching documents</code>diff --git a/lucene/demo/src/java/overview.html b/lucene/demo/src/java/overview.htmlindex d3a1c12a0fe..c20d096abf6 100644--- a/lucene/demo/src/java/overview.html+++ b/lucene/demo/src/java/overview.html@@ -60,7 +60,7 @@ when you extracted the archive -- it should be named something like<span class="codefrag">lucene-core-{version}.jar</span>. You should also seefiles called <span class="codefrag">lucene-queryparser-{version}.jar</span>,<span class=-"codefrag">lucene-analyzers-common-{version}.jar</span> and <span class=+"codefrag">lucene-analysis-common-{version}.jar</span> and <span class="codefrag">lucene-demo-{version}.jar</span> under queryparser, analysis/common/ and demo/,respectively.</p><p>Put all four of these files in your Java CLASSPATH.</p>diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/LimitTokenOffsetFilter.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/LimitTokenOffsetFilter.javaindex 149584e42d3..39763579ca3 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/LimitTokenOffsetFilter.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/LimitTokenOffsetFilter.java@@ -24,7 +24,7 @@ import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;/*** This is a simplified version of org.apache.lucene.analysis.miscellaneous.LimitTokenOffsetFilter to prevent- * a dependency on analyzers-common.jar.+ * a dependency on analysis-common.jar.*/final class LimitTokenOffsetFilter extends TokenFilter {