LUCENE-6669 Fix repeated "the the"

Co-Authored-By: Rich Bowen <rbowen@apache.org>
This commit is contained in:
Mike Drob 2020-06-24 16:13:54 -05:00
parent 25428013fb
commit fa44f822e3
No known key found for this signature in database
GPG Key ID: 3E48C0C6EF362B9E
22 changed files with 25 additions and 25 deletions

View File

@ -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>
*

View File

@ -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: " + expected

View File

@ -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 with

View File

@ -32,7 +32,7 @@ Lucene QueryParser to parse Google-style search syntax provided by end users.</p
Unlike 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> for
subsequent 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 Boolean
logic to determine mandatory or optional elements.</p><p><h3>Advanced topics</h3>
<h4>Advanced positional testing - span queries</h4>

View File

@ -41,7 +41,7 @@
<span class="dtd_comment"> subsequent reuse (see &lt;a href=&quot;#CachedFilter&quot;&gt;CachedFilter&lt;/a&gt; tag).</span>
<span class="dtd_comment"> &lt;h4&gt;Nesting elements&lt;/h4&gt;</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 &lt;a href=&quot;#BooleanQuery&quot;&gt;BooleanQuery&lt;/a&gt; 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>

View File

@ -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;

View File

@ -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 Boolean
logic to determine mandatory or optional elements.

View File

@ -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;

View File

@ -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. */

View File

@ -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 {

View File

@ -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.internal

View File

@ -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;

View File

@ -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 null

View File

@ -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.

View File

@ -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 Error
Throwable t = ex;
while (t != null) {
if (t instanceof Error) {

View File

@ -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.

View File

@ -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>

View File

@ -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.

View File

@ -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.

View File

@ -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;

View File

@ -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>

View File

@ -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