Apache Solr open-source search software
LUCENE-9441: Fix ant-specific Javadoc links in accordance with Gradle build
Tomoko Uchidac11d32faed44
diff --git a/gradle/validation/check-broken-links.gradle b/gradle/validation/check-broken-links.gradleindex 28104750372..e9d1a11eeb5 100644--- a/gradle/validation/check-broken-links.gradle+++ b/gradle/validation/check-broken-links.gradle@@ -26,13 +26,12 @@ configure(rootProject) {}}+configure(subprojects.findAll { it.path in [':lucene', ':solr'] }) {task checkBrokenLinks(type: CheckBrokenLinksTask, 'dependsOn': 'documentation')- // TODO: uncomment this line after fixing all broken links.- // (we can't fix the cross-project links until ant build is disabled.)- // check.dependsOn checkBrokenLinks+ check.dependsOn checkBrokenLinks}class CheckBrokenLinksTask extends DefaultTask {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.java b/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.javaindex 5b83ea5ef31..c79b58cc088 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.java@@ -145,7 +145,7 @@* </li>* </ol>* <p>- * <code>ICUCollationKeyAnalyzer</code>, available in the <a href="{@docRoot}/../analyzers-icu/overview-summary.html">icu analysis module</a>,+ * <code>ICUCollationKeyAnalyzer</code>, available in the <a href="{@docRoot}/../icu/overview-summary.html">icu analysis module</a>,* uses ICU4J's <code>Collator</code>, which* makes its version available, thus allowing collation to be versioned* independently from the JVM. <code>ICUCollationKeyAnalyzer</code> is alsodiff --git a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.javaindex b9a798b97e5..2749c1cb700 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java@@ -64,19 +64,19 @@ import org.apache.lucene.util.Version;* <p>* For some concrete implementations bundled with Lucene, look in the analysis modules:* <ul>- * <li><a href="{@docRoot}/../analyzers-common/overview-summary.html">Common</a>:+ * <li><a href="{@docRoot}/../analysis/common/overview-summary.html">Common</a>:* Analyzers for indexing content in different languages and domains.- * <li><a href="{@docRoot}/../analyzers-icu/overview-summary.html">ICU</a>:+ * <li><a href="{@docRoot}/../analysis/icu/overview-summary.html">ICU</a>:* Exposes functionality from ICU to Apache Lucene.- * <li><a href="{@docRoot}/../analyzers-kuromoji/overview-summary.html">Kuromoji</a>:+ * <li><a href="{@docRoot}/../analysis/kuromoji/overview-summary.html">Kuromoji</a>:* Morphological analyzer for Japanese text.- * <li><a href="{@docRoot}/../analyzers-morfologik/overview-summary.html">Morfologik</a>:+ * <li><a href="{@docRoot}/../analysis/morfologik/overview-summary.html">Morfologik</a>:* Dictionary-driven lemmatization for the Polish language.- * <li><a href="{@docRoot}/../analyzers-phonetic/overview-summary.html">Phonetic</a>:+ * <li><a href="{@docRoot}/../analysis/phonetic/overview-summary.html">Phonetic</a>:* Analysis for indexing phonetic signatures (for sounds-alike search).- * <li><a href="{@docRoot}/../analyzers-smartcn/overview-summary.html">Smart Chinese</a>:+ * <li><a href="{@docRoot}/../analysis/smartcn/overview-summary.html">Smart Chinese</a>:* Analyzer for Simplified Chinese, which indexes words.- * <li><a href="{@docRoot}/../analyzers-stempel/overview-summary.html">Stempel</a>:+ * <li><a href="{@docRoot}/../analysis/stempel/overview-summary.html">Stempel</a>:* Algorithmic Stemmer for the Polish Language.* </ul>*@@ -103,7 +103,7 @@ public abstract class Analyzer implements Closeable {* <p>* NOTE: if you just want to reuse on a per-field basis, it's easier to* use a subclass of {@link AnalyzerWrapper} such as- * <a href="{@docRoot}/../analyzers-common/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.html">+ * <a href="{@docRoot}/../analysis/common/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.html">* PerFieldAnalyerWrapper</a> instead.*/public Analyzer(ReuseStrategy reuseStrategy) {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 b7e752c4578..83736aec4c3 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,10 +158,10 @@* 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}/../analyzers-common/overview-summary.html">analyzers-common</a>+ * than the <code>StandardAnalyzer</code>. The <a href="{@docRoot}/../analysis/common/overview-summary.html">analyzers-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}/../analyzers-common/org/apache/lucene/analysis/custom/CustomAnalyzer.html">CustomAnalyzer</a>+ * <a href="{@docRoot}/../analysis/common/org/apache/lucene/analysis/custom/CustomAnalyzer.html">CustomAnalyzer</a>* class.* </p>* <p>@@ -170,7 +170,7 @@* all under the 'analysis' directory of the distribution. Some of* these support particular languages, others integrate external* components. The 'common' subdirectory has some noteworthy- * general-purpose analyzers, including the <a href="{@docRoot}/../analyzers-common/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.html">PerFieldAnalyzerWrapper</a>. Most <code>Analyzer</code>s perform the same operation on all+ * general-purpose analyzers, including the <a href="{@docRoot}/../analysis/common/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.html">PerFieldAnalyzerWrapper</a>. Most <code>Analyzer</code>s perform the same operation on all* {@link org.apache.lucene.document.Field}s. The PerFieldAnalyzerWrapper can be used to associate a different <code>Analyzer</code> with different* {@link org.apache.lucene.document.Field}s. There is a great deal of* functionality in the analysis area, you should study it carefully to@@ -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}/../analyzers-common/overview-summary.html">analyzers-common</a> library and/or ask on the+ * <a href="{@docRoot}/../analysis/common/overview-summary.html">analyzers-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 95d158900de..9338742bd30 100644--- a/lucene/core/src/java/overview.html+++ b/lucene/core/src/java/overview.html@@ -72,8 +72,8 @@ 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="../analyzers-common/overview-summary.html">analyzers-common</a> provides a number of Analyzer implementations, including-<a href="../analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html">StopAnalyzer</a>+<a href="../analysis/common/overview-summary.html">analyzers-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><li>diff --git a/lucene/demo/src/java/overview.html b/lucene/demo/src/java/overview.htmlindex 8f1a08a609f..d3a1c12a0fe 100644--- a/lucene/demo/src/java/overview.html+++ b/lucene/demo/src/java/overview.html@@ -151,7 +151,7 @@ have less value for searching. It should be noted that there are differentrules for every language, and you should use the proper analyzer for each.Lucene currently provides Analyzers for a number of different languages (seethe javadocs under <a href=-"../analyzers-common/overview-summary.html">lucene/analysis/common/src/java/org/apache/lucene/analysis</a>).</p>+"../analysis/common/overview-summary.html">lucene/analysis/common/src/java/org/apache/lucene/analysis</a>).</p><p>The <span class="codefrag">IndexWriterConfig</span> instance holds allconfiguration for <span class="codefrag">IndexWriter</span>. For example, weset the <span class="codefrag">OpenMode</span> to use here based on the value