Apache Lucene open-source search software
LUCENE-4011: fix most broken links in solr javadocs
Robert Muirab3f63d2792b
diff --git a/dev-tools/scripts/checkJavadocLinks.py b/dev-tools/scripts/checkJavadocLinks.pyindex a9ae3ec3a42..de2eb3f1ba2 100644--- a/dev-tools/scripts/checkJavadocLinks.py+++ b/dev-tools/scripts/checkJavadocLinks.py@@ -161,6 +161,15 @@ def checkAll(dirName):elif link.find('lucene.apache.org/java/docs/discussion.html') != -1:# OKpass+ elif link.find('lucene.apache.org/solr/mirrors-solr-latest-redir.html') != -1:+ # OK+ pass+ elif link.find('lucene.apache.org/solr/discussion.html') != -1:+ # OK+ pass+ elif link.find('lucene.apache.org/solr/features.html') != -1:+ # OK+ passelif link.find('svn.apache.org') != -1 or link.find('lucene.apache.org') != -1:if not printed:printed = Truediff --git a/solr/common-build.xml b/solr/common-build.xmlindex f3035994f61..ae42daa6706 100644--- a/solr/common-build.xml+++ b/solr/common-build.xml@@ -233,6 +233,7 @@<link offline="true" href="${lucene.javadoc.url}/analyzers-phonetic" packagelistloc="${lucenedocs}/analyzers-phonetic"/><link offline="true" href="${lucene.javadoc.url}/analyzers-smartcn" packagelistloc="${lucenedocs}/analyzers-smartcn"/><link offline="true" href="${lucene.javadoc.url}/analyzers-stempel" packagelistloc="${lucenedocs}/analyzers-stempel"/>+ <link offline="true" href="${lucene.javadoc.url}/analyzers-uima" packagelistloc="${lucenedocs}/analyzers-uima"/><link offline="true" href="${lucene.javadoc.url}/suggest" packagelistloc="${lucenedocs}/suggest"/><link offline="true" href="${lucene.javadoc.url}/grouping" packagelistloc="${lucenedocs}/grouping"/><link offline="true" href="${lucene.javadoc.url}/queries" packagelistloc="${lucenedocs}/queries"/>diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.javaindex e76e4ee0091..1f805d9e913 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.java@@ -60,7 +60,7 @@ public abstract class DataSource<T> {* for HttpDataSource or a file location for FileDataSource or a custom* format for your own custom DataSource.* @return Depends on the implementation. For instance JdbcDataSource returns- * an Iterator<Map <String,Object>>+ * an Iterator<Map <String,Object>>*/public abstract T getData(String query);diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.javaindex 000727840f9..ff5eb5ff22b 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java@@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;* /a//b...* /a/b/c* </pre>- * A record is a Map<String,Object> . The key is the provided name+ * A record is a Map<String,Object> . The key is the provided name* and the value is a String or a List<String>** This class is thread-safe for parsing xml. But adding fields is not@@ -98,7 +98,7 @@ public class XPathRecordReader {}/**- * A wrapper around {@link #addField0 addField0()} to create a series of+ * A wrapper around <code>addField0</code> to create a series of* Nodes based on the supplied Xpath and a given fieldName. The created* nodes are inserted into a Node tree.*@@ -113,7 +113,7 @@ public class XPathRecordReader {}/**- * A wrapper around {@link #addField0 addField0()} to create a series of+ * A wrapper around <code>addField0</code> to create a series of* Nodes based on the supplied Xpath and a given fieldName. The created* nodes are inserted into a Node tree.*diff --git a/solr/core/src/java/org/apache/solr/analysis/HTMLStripCharFilterFactory.java b/solr/core/src/java/org/apache/solr/analysis/HTMLStripCharFilterFactory.javaindex 1e959b2f4d0..472f0b620dd 100644--- a/solr/core/src/java/org/apache/solr/analysis/HTMLStripCharFilterFactory.java+++ b/solr/core/src/java/org/apache/solr/analysis/HTMLStripCharFilterFactory.java@@ -35,7 +35,7 @@ import java.util.regex.Pattern;* <charFilter class="solr.HTMLStripCharFilterFactory" escapedTags="a, title" />* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* </analyzer>- * </fieldType></pre+ * </fieldType></pre>**/public class HTMLStripCharFilterFactory extends BaseCharFilterFactory {diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.javaindex 8d790472c89..69e6b0c278d 100644--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java@@ -1006,7 +1006,6 @@ public class CoreContainer}/** Gets a core by name and increase its refcount.- * @see SolrCore#open()* @see SolrCore#close()* @param name the core name* @return the core if founddiff --git a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.javaindex 006e99382b9..4ea471c6386 100644--- a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java@@ -81,9 +81,9 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware ,}/**- * Initialize the components based on name. Note, if using {@link #INIT_FIRST_COMPONENTS} or {@link #INIT_LAST_COMPONENTS},+ * Initialize the components based on name. Note, if using <code>INIT_FIRST_COMPONENTS</code> or <code>INIT_LAST_COMPONENTS</code>,* then the {@link DebugComponent} will always occur last. If this is not desired, then one must explicitly declare all components using- * the {@link #INIT_COMPONENTS} syntax.+ * the <code>INIT_COMPONENTS</code> syntax.*/@SuppressWarnings("unchecked")public void inform(SolrCore core)diff --git a/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.java b/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.javaindex f6106cfbcb3..a6419298aed 100755--- a/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.java@@ -25,7 +25,7 @@ import org.apache.solr.request.SolrQueryRequest;/*** Implementations of <code>BinaryQueryResponseWriter</code> are used to* write response in binary format- * Functionality is exactly same as its parent class <code>QueryResponseWriter</code+ * Functionality is exactly same as its parent class <code>QueryResponseWriter</code>* But it may not implement the <code>write(Writer writer, SolrQueryRequest request, SolrQueryResponse response)</code>* method*diff --git a/solr/core/src/java/org/apache/solr/search/DisMaxQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/DisMaxQParserPlugin.javaindex ca90008579e..717dce754de 100755--- a/solr/core/src/java/org/apache/solr/search/DisMaxQParserPlugin.java+++ b/solr/core/src/java/org/apache/solr/search/DisMaxQParserPlugin.java@@ -56,7 +56,7 @@ import org.apache.solr.request.SolrQueryRequest;* </li>* <li> mm - (Minimum Match) this supports a wide variety of* complex expressions.- * read {@link org.apache.solr.util.SolrPluginUtils#setMinShouldMatch SolrPluginUtils.setMinShouldMatch} and <a href="http://lucene.apache.org/solr/api/org/apache/solr/util/doc-files/min-should-match.html">mm expression format</a> for details.+ * read {@link org.apache.solr.util.SolrPluginUtils#setMinShouldMatch SolrPluginUtils.setMinShouldMatch} and <a href="{@docRoot}/org/apache/solr/util/doc-files/min-should-match.html">mm expression format</a> for details.* </li>* <li> pf - (Phrase Fields) fields/boosts to make phrase queries out* of, to boost the users query for exact matches on the specified fields.diff --git a/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.java b/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.javaindex 0ec4a902dda..b781bef1416 100644--- a/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.java+++ b/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.java@@ -70,7 +70,7 @@ public class DirectSolrConnection* For example:** String json = solr.request( "/select?qt=dismax&wt=json&q=...", null );- * String xml = solr.request( "/update", "<add><doc><field ..." );+ * String xml = solr.request( "/update", "<add><doc><field ..." );*/public String request( String pathAndParams, String body ) throws Exception{diff --git a/solr/core/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.java b/solr/core/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.javaindex c499f7033de..2bc1200eea6 100644--- a/solr/core/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.java+++ b/solr/core/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.java@@ -20,7 +20,7 @@ package org.apache.solr.util.plugin;import java.util.Map;/**- * A plugin that can be initialized with a Map<String,String>+ * A plugin that can be initialized with a Map<String,String>*** @since solr 1.3diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.javaindex d0674d4ecf6..5862114f55d 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java@@ -126,17 +126,8 @@ public class HttpSolrServer extends SolrServer {private final HttpClient httpClient;- /**- * This defaults to false under the assumption that if you are following a- * redirect to get to a Solr installation, something is misconfigured- * somewhere.- */private boolean followRedirects = false;- /**- * Maximum number of retries to attempt in the event of transient errors.- * Default: 0 (no) retries. No more than 1 recommended.- */private int maxRetries = 0;private ThreadSafeClientConnManager ccm;@@ -517,8 +508,11 @@ public class HttpSolrServer extends SolrServer {/*** HttpClientParams.setRedirecting- *- * @see #followRedirects+ * <p>+ * This defaults to false under the assumption that if you are following a+ * redirect to get to a Solr installation, something is misconfigured+ * somewhere.+ * </p>*/public void setFollowRedirects(boolean followRedirects) {this.followRedirects = followRedirects;@@ -613,10 +607,12 @@ public class HttpSolrServer extends SolrServer {/*** Set maximum number of retries to attempt in the event of transient errors.- *+ * <p>+ * Maximum number of retries to attempt in the event of transient errors.+ * Default: 0 (no) retries. No more than 1 recommended.+ * </p>* @param maxRetries* No more than 1 recommended- * @see #maxRetries*/public void setMaxRetries(int maxRetries) {if (maxRetries > 1) {diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java b/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.javaindex 88c9c125f57..b7b0b5eddd9 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java@@ -180,7 +180,8 @@ public class ClientUtils/**- * See: <a href="http://lucene.apache.org/java/docs/nightly/queryparsersyntax.html#Escaping%20Special%20Characters">Escaping Special Characters</a>+ * See: {@link org.apache.lucene.queryparser.classic queryparser syntax}+ * for more information on Escaping Special Characters*/public static String escapeQueryChars(String s) {StringBuilder sb = new StringBuilder();diff --git a/solr/test-framework/build.xml b/solr/test-framework/build.xmlindex 6aee9d6f983..05699afffdd 100644--- a/solr/test-framework/build.xml+++ b/solr/test-framework/build.xml@@ -44,14 +44,15 @@<target name="javadocs"depends="compile-core,lucene-javadocs,javadocs-test-framework,define-lucene-javadoc-url"><sequential>- <solr-invoke-javadoc>- <solrsources>+ <mkdir dir="${javadoc.dir}"/>+ <invoke-javadoc destdir="${javadoc.dir}"+ title="${Name}" overview="${src.dir}/overview.html">+ <sources><link offline="true" href="${javadoc.link.junit}"packagelistLoc="${javadoc.packagelist.dir}/junit"/>- <link offline="true" href="${lucene.javadoc.url}/test-framework" packagelistloc="${lucenedocs}/test-framework"/><packageset dir="${src.dir}"/>- </solrsources>- </solr-invoke-javadoc>+ </sources>+ </invoke-javadoc><solr-jarify basedir="${javadoc.dir}" destfile="${build.dir}/${final.name}-javadoc.jar"/><mkdir dir="${dest}/docs/api/test-framework"/><copy todir="${dest}/docs/api/test-framework">