Apache Lucene open-source search software
LUCENE-6669 Fix repeated "the the"
Mike Drobfa44f822e37c
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/HyphenationTree.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/HyphenationTree.javaindex 3c72b4fe045..70ad08e2431 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/HyphenationTree.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/HyphenationTree.java@@ -186,7 +186,7 @@ public class HyphenationTree extends TernaryTree implements PatternConsumer {* patterns for languages such as English range from 4000 to 10000. Thus,* doing thousands of string comparisons for each word to hyphenate would be* really slow without the tree. The tradeoff is memory, but using a ternary- * tree instead of a trie, almost halves the the memory used by Lout or TeX.+ * tree instead of a trie, almost halves the memory used by Lout or TeX.* It's also faster than using a hash table* </p>*diff --git a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.javaindex 0e51dffd58f..e3df50555a3 100644--- a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java+++ b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java@@ -130,7 +130,7 @@ final class DocumentsWriterFlushControl implements Accountable, Closeable {* several DWPT in flight indexing large documents (compared to the ram* buffer). This means that those DWPT and their threads will not hit* the stall control before asserting the memory which would in turn- * fail. To prevent this we only assert if the the largest document seen+ * fail. To prevent this we only assert if the largest document seen* is smaller than the 1/2 of the maxRamBufferMB*/assert ram <= expected : "actual mem: " + ram + " byte, expected mem: " + expecteddiff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.javaindex f631d3be4d4..9fdb53097c7 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.java@@ -54,7 +54,7 @@ import org.apache.lucene.store.AlreadyClosedException;* <P>* This order is important, otherwise it would be possible for the main index* to refer to a category which is not yet visible in the old snapshot of- * the taxonomy. Note that it is indeed fine for the the taxonomy to be opened+ * the taxonomy. Note that it is indeed fine for the taxonomy to be opened* after the main index - even a long time after. The reason is that once* a category is added to the taxonomy, it can never be changed or deleted,* so there is no danger that a "too new" taxonomy not being consistent withdiff --git a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.htmlindex ef7bd881d3c..631e5ab24f2 100644--- a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html+++ b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html@@ -32,7 +32,7 @@ Lucene QueryParser to parse Google-style search syntax provided by end users.</pUnlike Queries, <i>Filters</i> are not used to select or score content - they are simply used to filter <i>Query</i> output (see <a href="#FilteredQuery">FilteredQuery</a> for an example use of query filtering).Because Filters simply offer a yes/no decision for each document in the index their output can be efficiently cached in memory as a <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/BitSet.html">Bitset</a> forsubsequent reuse (see <a href="#CachedFilter">CachedFilter</a> tag).</p><p><h4>Nesting elements</h4>-Many of the the elements can nest other elements to produce queries/filters of an arbitrary depth and complexity.+Many of the elements can nest other elements to produce queries/filters of an arbitrary depth and complexity.The <a href="#BooleanQuery">BooleanQuery</a> element is one such example which provides a means for combining other queries (including other BooleanQueries) using Booleanlogic to determine mandatory or optional elements.</p><p><h3>Advanced topics</h3><h4>Advanced positional testing - span queries</h4>diff --git a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.htmlindex 2fd844c4cf1..fe029a6f5c8 100644--- a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html+++ b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html@@ -41,7 +41,7 @@<span class="dtd_comment"> subsequent reuse (see <a href="#CachedFilter">CachedFilter</a> tag).</span><span class="dtd_comment"> <h4>Nesting elements</h4></span>-<span class="dtd_comment"> Many of the the elements can nest other elements to produce queries/filters of an arbitrary depth and complexity. </span>+<span class="dtd_comment"> Many of the elements can nest other elements to produce queries/filters of an arbitrary depth and complexity. </span><span class="dtd_comment"> The <a href="#BooleanQuery">BooleanQuery</a> element is one such example which provides a means for combining other queries (including other BooleanQueries) using Boolean </span><span class="dtd_comment"> logic to determine mandatory or optional elements. </span>diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.javaindex fca8386c670..6f70ec09575 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.java@@ -198,7 +198,7 @@ public abstract class QueryNodeImpl implements QueryNode, Cloneable {}/**- * If set to true the the method toQueryString will not write field names+ * If set to true the method toQueryString will not write field names*/protected boolean toQueryStringIgnoreFields = false;diff --git a/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd b/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtdindex 48f94ae957f..290036e20cb 100644--- a/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd+++ b/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd@@ -35,7 +35,7 @@subsequent reuse (see <a href="#CachedFilter">CachedFilter</a> tag).<h4>Nesting elements</h4>- Many of the the elements can nest other elements to produce queries/filters of an arbitrary depth and complexity.+ Many of the elements can nest other elements to produce queries/filters of an arbitrary depth and complexity.The <a href="#BooleanQuery">BooleanQuery</a> element is one such example which provides a means for combining other queries (including other BooleanQueries) using Booleanlogic to determine mandatory or optional elements.diff --git a/lucene/site/changes/changes2html.pl b/lucene/site/changes/changes2html.plindex dcdcaa436d2..1ebf33eefd7 100755--- a/lucene/site/changes/changes2html.pl+++ b/lucene/site/changes/changes2html.pl@@ -623,7 +623,7 @@ print "</body>\n</html>\n";## Returns one scalar:#-# - text with the the trailing attribution, if any, marked up with the color green+# - text with the trailing attribution, if any, marked up with the color green#sub markup_trailing_attribution {my $item = shift;diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.javaindex a10f989357a..2ac640b28f8 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.java@@ -114,10 +114,10 @@ public class FreeTextSuggester extends Lookup implements Accountable {/** Codec name used in the header for the saved model. */public final static String CODEC_NAME = "freetextsuggest";- /** Initial version of the the saved model file format. */+ /** Initial version of the saved model file format. */public final static int VERSION_START = 0;- /** Current version of the the saved model file format. */+ /** Current version of the saved model file format. */public final static int VERSION_CURRENT = VERSION_START;/** By default we use a bigram model. */diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.javaindex a38e800743c..bd0c45d721e 100644--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java@@ -97,7 +97,7 @@ import static org.apache.solr.core.SolrConfig.PluginOpts.REQUIRE_NAME_IN_OVERLAY/*** Provides a static reference to a Config object modeling the main- * configuration data for a a Solr instance -- typically found in+ * configuration data for a Solr instance -- typically found in* "solrconfig.xml".*/public class SolrConfig extends XmlConfigFile implements MapSerializable {diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.javaindex b68598c5785..916e6939301 100644--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java@@ -1875,7 +1875,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw* Boolean param for tests that can be specified when using* {@link #CMD_FETCH_INDEX} to force the current request to block until* the fetch is complete. <b>NOTE:</b> This param is not advised for- * non-test code, since the the duration of the fetch for non-trivial+ * non-test code, since the duration of the fetch for non-trivial* indexes will likeley cause the request to time out.** @lucene.internaldiff --git a/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java b/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.javaindex 17252c700e8..6dd60eb482a 100644--- a/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java@@ -87,7 +87,7 @@ public class HttpShardHandler extends ShardHandler {}/**- * Subclasses could modify the Response based on the the shard+ * Subclasses could modify the Response based on the shard*/protected ShardResponse transfomResponse(final ShardRequest sreq, ShardResponse rsp, String shard) {return rsp;diff --git a/solr/core/src/java/org/apache/solr/handler/component/PivotFacetFieldValueCollection.java b/solr/core/src/java/org/apache/solr/handler/component/PivotFacetFieldValueCollection.javaindex 9af3a93d953..9a3058767b1 100644--- a/solr/core/src/java/org/apache/solr/handler/component/PivotFacetFieldValueCollection.java+++ b/solr/core/src/java/org/apache/solr/handler/component/PivotFacetFieldValueCollection.java@@ -71,7 +71,7 @@ public class PivotFacetFieldValueCollection implements Iterable<PivotFacetValue>}/**- * The {@link PivotFacetValue} with corisponding to a a value of+ * The {@link PivotFacetValue} with corresponding to a value of* <code>null</code> when {@link FacetParams#FACET_MISSING} is used.** @return the appropriate <code>PivotFacetValue</code> object, may be nulldiff --git a/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.java b/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.javaindex 27da6a2e94b..10a7b665c00 100644--- a/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.java+++ b/solr/core/src/java/org/apache/solr/servlet/DirectSolrConnection.java@@ -36,7 +36,7 @@ import org.apache.solr.response.SolrQueryResponse;/*** DirectSolrConnection provides an interface to Solr that is similar to- * the the HTTP interface, but does not require an HTTP connection.+ * the HTTP interface, but does not require an HTTP connection.** This class is designed to be as simple as possible and allow for more flexibility* in how you interface to Solr.diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.javaindex 3fed972bcc3..88940af9aad 100644--- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java+++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java@@ -610,7 +610,7 @@ public class HttpSolrCall {cores.getAuditLoggerPlugin().doAudit(new AuditEvent(EventType.ERROR, ex, req));}sendError(ex);- // walk the the entire cause chain to search for an Error+ // walk the entire cause chain to search for an ErrorThrowable t = ex;while (t != null) {if (t instanceof Error) {diff --git a/solr/core/src/java/org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.javaindex 292b68a7b2a..bfc7b5c7068 100644--- a/solr/core/src/java/org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.java@@ -25,7 +25,7 @@ import static org.apache.solr.update.processor.FieldMutatingUpdateProcessor.muta/*** <p>* Replaces any list of values for a field matching the specified- * conditions with the the count of the number of values for that field.+ * conditions with the count of the number of values for that field.* </p>* <p>* By default, this processor matches no fields.diff --git a/solr/core/src/java/org/apache/solr/update/processor/DocExpirationUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/DocExpirationUpdateProcessorFactory.javaindex 5e709f31960..37fe6acad75 100644--- a/solr/core/src/java/org/apache/solr/update/processor/DocExpirationUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/DocExpirationUpdateProcessorFactory.java@@ -99,7 +99,7 @@ import static org.apache.solr.common.SolrException.ErrorCode.SERVER_ERROR;* </li>* <li><code>ttlParamName</code> - Name of an update request param this process should* look for in each request when processing document additions, defaulting to- * <code>_ttl_</code>. If the the specified param name exists in an update request,+ * <code>_ttl_</code>. If the specified param name exists in an update request,* the param value will be parsed as a {@linkplain DateMathParser Date Math Expression}* relative to <code>NOW</code> and the result will be used as a default for any* document included in that request that does not already have a value in the@@ -352,7 +352,7 @@ public final class DocExpirationUpdateProcessorFactory/*** <p>- * Runnable that uses the the <code>deleteChainName</code> configured for+ * Runnable that uses the <code>deleteChainName</code> configured for* this factory to execute a delete by query (using the configured* <code>expireField</code>) followed by a soft commit to re-open searchers (if needed)* </p>diff --git a/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.javaindex 06f69ddd8b1..b5691520d6d 100644--- a/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java@@ -27,7 +27,7 @@ import static org.apache.solr.common.SolrException.ErrorCode.BAD_REQUEST;import static org.apache.solr.update.processor.FieldMutatingUpdateProcessor.SELECT_NO_FIELDS;/**- * An update processor that keeps only the the maximum value from any selected+ * An update processor that keeps only the maximum value from any selected* fields where multiple values are found. Correct behavior requires tha all* of the values in the SolrInputFields being mutated are mutually comparable;* If this is not the case, then a SolrException will br thrown.diff --git a/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.javaindex 8ef1602b2d0..b81ea50160a 100644--- a/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java@@ -27,7 +27,7 @@ import static org.apache.solr.common.SolrException.ErrorCode.BAD_REQUEST;import static org.apache.solr.update.processor.FieldMutatingUpdateProcessor.SELECT_NO_FIELDS;/**- * An update processor that keeps only the the minimum value from any selected+ * An update processor that keeps only the minimum value from any selected* fields where multiple values are found. Correct behavior requires tha all* of the values in the SolrInputFields being mutated are mutually comparable;* If this is not the case, then a SolrException will br thrown.diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/response/AnalysisResponseBase.java b/solr/solrj/src/java/org/apache/solr/client/solrj/response/AnalysisResponseBase.javaindex cbd7f4ca4d3..e238dcc21bf 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/response/AnalysisResponseBase.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/response/AnalysisResponseBase.java@@ -190,7 +190,7 @@ public class AnalysisResponseBase extends SolrResponseBase {* @param start The start position of the token in the original text where it was extracted from.* @param end The end position of the token in the original text where it was extracted from.* @param position The position of the token within the token stream.- * @param match Indicates whether this token matches one of the the query tokens.+ * @param match Indicates whether this token matches one of the query tokens.*/TokenInfo(String text, String rawText, String type, int start, int end, int position, boolean match) {this.text = text;diff --git a/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.java b/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.javaindex b61df072f54..d8baa63736a 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.java@@ -253,7 +253,7 @@ public interface FacetParams {/*** <p>* Multivalued string indicating what rules should be applied to determine- * when the the ranges generated for date faceting should be inclusive or+ * when the ranges generated for date faceting should be inclusive or* exclusive of their end points.* </p>* <p>@@ -312,7 +312,7 @@ public interface FacetParams {/*** <p>* Multivalued string indicating what rules should be applied to determine- * when the the ranges generated for numeric faceting should be inclusive or+ * when the ranges generated for numeric faceting should be inclusive or* exclusive of their end points.* </p>* <p>diff --git a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.javaindex f456e353633..694eb937bb9 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java@@ -299,7 +299,7 @@ public class NamedList<T> implements Cloneable, Serializable, Iterable<Map.Entry}/**- * Gets the values for the the specified name+ * Gets the values for the specified name** @param name Name* @return List of values