Apache Lucene open-source search software
SOLR-9105: Fix some typos in solr core module
Bartosz Krasiński160940688f8c
diff --git a/solr/core/src/java/org/apache/solr/client/solrj/embedded/SSLConfig.java b/solr/core/src/java/org/apache/solr/client/solrj/embedded/SSLConfig.javaindex 60f383ce6ee..62c90240d4a 100644--- a/solr/core/src/java/org/apache/solr/client/solrj/embedded/SSLConfig.java+++ b/solr/core/src/java/org/apache/solr/client/solrj/embedded/SSLConfig.java@@ -20,7 +20,7 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;/*** Encapsulates settings related to SSL Configuration for an embedded Jetty Server.- * NOTE: all other settings are ignogred if {@link #isSSLMode} is false.+ * NOTE: all other settings are ignored if {@link #isSSLMode} is false.* @see #setUseSSL*/public class SSLConfig {diff --git a/solr/core/src/java/org/apache/solr/cloud/Assign.java b/solr/core/src/java/org/apache/solr/cloud/Assign.javaindex d313a47043a..b68dfe15528 100644--- a/solr/core/src/java/org/apache/solr/cloud/Assign.java+++ b/solr/core/src/java/org/apache/solr/cloud/Assign.java@@ -157,7 +157,7 @@ public class Assign {if (createNodeList == null) { // We only care if we haven't been told to put new replicas on specific nodes.int availableSlots = 0;for (Map.Entry<String, ReplicaCount> ent : nodeNameVsShardCount.entrySet()) {- //ADDREPLICA can put more than maxShardsPerNode on an instnace, so this test is necessary.+ //ADDREPLICA can put more than maxShardsPerNode on an instance, so this test is necessary.if (maxShardsPerNode > ent.getValue().thisCollectionNodes) {availableSlots += (maxShardsPerNode - ent.getValue().thisCollectionNodes);}diff --git a/solr/core/src/java/org/apache/solr/cloud/Overseer.java b/solr/core/src/java/org/apache/solr/cloud/Overseer.javaindex f25cab7b670..c5e51f918da 100644--- a/solr/core/src/java/org/apache/solr/cloud/Overseer.java+++ b/solr/core/src/java/org/apache/solr/cloud/Overseer.java@@ -659,7 +659,7 @@ public class Overseer implements Closeable {}}- // Go through the list of presently-hosted proeprties and remove any that have too many replicas that host the property+ // Go through the list of presently-hosted properties and remove any that have too many replicas that host the propertyprivate void removeOverallocatedReplicas() {tmpMaxPropPerNode = origMaxPropPerNode; // A bit clumsy, but don't want to duplicate code.tmpModulo = origModulo;diff --git a/solr/core/src/java/org/apache/solr/core/Config.java b/solr/core/src/java/org/apache/solr/core/Config.javaindex a998c6f854a..9244409eced 100644--- a/solr/core/src/java/org/apache/solr/core/Config.java+++ b/solr/core/src/java/org/apache/solr/core/Config.java@@ -103,7 +103,7 @@ public class Config {* @param loader the resource loader used to obtain an input stream if 'is' is null* @param name the resource name used if the input stream 'is' is null* @param is the resource as a SAX InputSource- * @param prefix an optional prefix that will be preprended to all non-absolute xpath expressions+ * @param prefix an optional prefix that will be prepended to all non-absolute xpath expressions*/public Config(SolrResourceLoader loader, String name, InputSource is, String prefix, boolean substituteProps) throws ParserConfigurationException, IOException, SAXException{diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.javaindex e1ea6fb8bdd..f933faba822 100644--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java@@ -1082,7 +1082,7 @@ public class CoreContainer {CoreDescriptor desc = solrCores.getDynamicDescriptor(name);if (desc == null) { //Nope, no transient core with this name- // if there was an error initalizing this core, throw a 500+ // if there was an error initializing this core, throw a 500// error with the details for clients attempting to access it.CoreLoadFailure loadFailure = getCoreInitFailures().get(name);if (null != loadFailure) {diff --git a/solr/core/src/java/org/apache/solr/core/InitParams.java b/solr/core/src/java/org/apache/solr/core/InitParams.javaindex d79dfeaa750..031c7b78234 100644--- a/solr/core/src/java/org/apache/solr/core/InitParams.java+++ b/solr/core/src/java/org/apache/solr/core/InitParams.java@@ -94,7 +94,7 @@ public class InitParams {//if this is a component implicitly defined in code it should be overridden by initPramsmerge(defaults, (NamedList) info.initArgs.get(DEFAULTS), info.initArgs, DEFAULTS, false);} else {- //if the args is initialized from solrconfig.xml inside the requesthHandler it should be taking precedence over initParams+ //if the args is initialized from solrconfig.xml inside the requestHandler it should be taking precedence over initParamsmerge((NamedList) info.initArgs.get(DEFAULTS), defaults, info.initArgs, DEFAULTS, false);}merge((NamedList) info.initArgs.get(INVARIANTS), invariants, info.initArgs, INVARIANTS, false);@@ -103,7 +103,7 @@ public class InitParams {if (pluginInfo.initArgs != null) {for (int i = 0; i < pluginInfo.initArgs.size(); i++) {String name = pluginInfo.initArgs.getName(i);- if (KNOWN_KEYS.contains(name)) continue;//aready taken care of+ if (KNOWN_KEYS.contains(name)) continue;//already taken care ofObject val = info.initArgs.get(name);if (val != null) continue; //this is explicitly specified in the reqhandler , ignoreinfo.initArgs.add(name, pluginInfo.initArgs.getVal(i));diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.javaindex 0b4bac33678..a5f54580e06 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 @@ public class SolrConfig extends Config implements MapSerializable {REQUIRE_NAME_IN_OVERLAY,REQUIRE_CLASS,LAZY,- // EnumSet.of and/or EnumSet.copyOf(Collection) are anoying+ // EnumSet.of and/or EnumSet.copyOf(Collection) are annoying// because of type determinationNOOP}@@ -204,7 +204,7 @@ public class SolrConfig extends Config implements MapSerializable {true);assertWarnOrFail("Solr no longer supports forceful unlocking via the 'unlockOnStartup' option. "+- "This is no longer neccessary for the default lockType except in situations where "++ "This is no longer necessary for the default lockType except in situations where "+"it would be dangerous and should not be done. For other lockTypes and/or "+"directoryFactory options it may also be dangerous and users must resolve "+"problematic locks manually.",@@ -317,7 +317,7 @@ public class SolrConfig extends Config implements MapSerializable {.add(new SolrPluginInfo(SearchComponent.class, "searchComponent", REQUIRE_NAME, REQUIRE_CLASS, MULTI_OK)).add(new SolrPluginInfo(UpdateRequestProcessorFactory.class, "updateProcessor", REQUIRE_NAME, REQUIRE_CLASS, MULTI_OK))// TODO: WTF is up with queryConverter???- // it aparently *only* works as a singleton? - SOLR-4304+ // it apparently *only* works as a singleton? - SOLR-4304// and even then -- only if there is a single SpellCheckComponent// because of queryConverter.setIndexAnalyzer.add(new SolrPluginInfo(QueryConverter.class, "queryConverter", REQUIRE_NAME, REQUIRE_CLASS))diff --git a/solr/core/src/java/org/apache/solr/core/package-info.java b/solr/core/src/java/org/apache/solr/core/package-info.javaindex 6fd201f5268..0dbb8c29d54 100644--- a/solr/core/src/java/org/apache/solr/core/package-info.java+++ b/solr/core/src/java/org/apache/solr/core/package-info.java@@ -16,7 +16,7 @@*//**- * Core classes implementin Solr internals and the management of {@link org.apache.solr.core.SolrCore}s+ * Core classes implementing Solr internals and the management of {@link org.apache.solr.core.SolrCore}s*/package org.apache.solr.core;diff --git a/solr/core/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java b/solr/core/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.javaindex d7cfc45dce4..0770bd40508 100644--- a/solr/core/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java+++ b/solr/core/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java@@ -222,7 +222,7 @@ public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase {final FieldType fieldType = context.getFieldType();final AttributeSource[] tokens = tokenList.toArray(new AttributeSource[tokenList.size()]);- // sort the tokens by absoulte position+ // sort the tokens by absolute positionArrayUtil.timSort(tokens, new Comparator<AttributeSource>() {@Overridepublic int compare(AttributeSource a, AttributeSource b) {@@ -481,7 +481,7 @@ public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase {/*** Constructs a new AnalysisContext with a given field tpe, analyzer and* termsToMatch. During the analysis processs, The produced tokens will be- * compaired to the termes in the {@code termsToMatch} set. When found,+ * compared to the terms in the {@code termsToMatch} set. When found,* these tokens will be marked as a match.** @param fieldName The name of the field the analysis is performed ondiff --git a/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.javaindex 947a3398183..7495ed0bddb 100644--- a/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java@@ -22,7 +22,7 @@ import org.apache.solr.request.SolrRequestHandler;/**An interface for RequestHandlers need to handle all paths under its registered path*/public interface NestedRequestHandler {- /** Return a Requestandler to handle a subpath from the path this handler is registered.+ /** Return a RequestHandler to handle a subpath from the path this handler is registered.*/SolrRequestHandler getSubHandler(String subPath);}diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.javaindex 4dbcef2260d..3785db76b79 100644--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java@@ -145,7 +145,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAwtry {version = Long.parseLong(commitTime);} catch (NumberFormatException e) {- LOG.warn("Version in commitData was not formated correctly: " + commitTime, e);+ LOG.warn("Version in commitData was not formatted correctly: " + commitTime, e);}}} catch (IOException e) {diff --git a/solr/core/src/java/org/apache/solr/handler/SQLHandler.java b/solr/core/src/java/org/apache/solr/handler/SQLHandler.javaindex bc46a7870d9..403185838c9 100644--- a/solr/core/src/java/org/apache/solr/handler/SQLHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/SQLHandler.java@@ -504,7 +504,7 @@ public class SQLHandler extends RequestHandlerBase implements SolrCoreAware , PeBucket[] buckets = getBuckets(sqlVisitor.groupBy, fieldSet);Metric[] metrics = getMetrics(sqlVisitor.fields, fieldSet);if(metrics.length == 0) {- throw new IOException("Group by queries must include atleast one aggregate function.");+ throw new IOException("Group by queries must include at least one aggregate function.");}TableSpec tableSpec = new TableSpec(sqlVisitor.table, defaultZkhost);diff --git a/solr/core/src/java/org/apache/solr/handler/StandardRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/StandardRequestHandler.javaindex 53a8397ce55..d5eae080cfa 100644--- a/solr/core/src/java/org/apache/solr/handler/StandardRequestHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/StandardRequestHandler.java@@ -25,7 +25,7 @@ import java.net.URL;*** All of the following options may be configured for this handler- * in the solrconfig as defaults, and may be overriden as request parameters.+ * in the solrconfig as defaults, and may be overridden as request parameters.* (TODO: complete documentation of request parameters here, rather than only* on the wiki).*diff --git a/solr/core/src/java/org/apache/solr/handler/component/StatsField.java b/solr/core/src/java/org/apache/solr/handler/component/StatsField.javaindex 6f151747cac..4c2a2b6a5ab 100644--- a/solr/core/src/java/org/apache/solr/handler/component/StatsField.java+++ b/solr/core/src/java/org/apache/solr/handler/component/StatsField.java@@ -138,7 +138,7 @@ public class StatsField {* order to compute <i>this</i> stat over the entire distributed result set.* @param selfDep indicates that when computing this stat across a distributed result* set, each shard must compute this stat <i>in addition to</i> any other- * distributed dependences.+ * distributed dependencies.* @see #getDistribDeps*/Stat(boolean selfDep, Stat... deps) {diff --git a/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java b/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.javaindex d49a108dd0e..c96a2ebafa0 100644--- a/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java+++ b/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java@@ -547,7 +547,7 @@ class NumericStatsValues extends AbstractStatsValues<Number> {if (null != min) {double minD = min.doubleValue();if (null == this.min || minD < this.minD) {- // Double for result & cached primitive doulbe to minimize unboxing in future comparisons+ // Double for result & cached primitive double to minimize unboxing in future comparisonsthis.min = this.minD = minD;}}@@ -556,7 +556,7 @@ class NumericStatsValues extends AbstractStatsValues<Number> {if (null != max) {double maxD = max.doubleValue();if (null == this.max || this.maxD < maxD) {- // Double for result & cached primitive doulbe to minimize unboxing in future comparisons+ // Double for result & cached primitive double to minimize unboxing in future comparisonsthis.max = this.maxD = maxD;}}diff --git a/solr/core/src/java/org/apache/solr/highlight/SolrHighlighter.java b/solr/core/src/java/org/apache/solr/highlight/SolrHighlighter.javaindex a32be422c03..e9ebf0c8ef5 100644--- a/solr/core/src/java/org/apache/solr/highlight/SolrHighlighter.java+++ b/solr/core/src/java/org/apache/solr/highlight/SolrHighlighter.java@@ -44,7 +44,7 @@ public abstract class SolrHighlighter/*** Return a String array of the fields to be highlighted.- * Falls back to the programatic defaults, or the default search field if the list of fields+ * Falls back to the programmatic defaults, or the default search field if the list of fields* is not specified in either the handler configuration or the request.* @param query The current Query* @param request The current SolrQueryRequestdiff --git a/solr/core/src/java/org/apache/solr/highlight/package-info.java b/solr/core/src/java/org/apache/solr/highlight/package-info.javaindex fda20833f3f..2177c7fdcc7 100644--- a/solr/core/src/java/org/apache/solr/highlight/package-info.java+++ b/solr/core/src/java/org/apache/solr/highlight/package-info.java@@ -16,7 +16,7 @@*//**- * {@link org.apache.solr.highlight.SolrHighlighter} API and related implementaions and utilities+ * {@link org.apache.solr.highlight.SolrHighlighter} API and related implementations and utilities* <p>* See {@link org.apache.lucene.search.highlight} for addition information.*/diff --git a/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.java b/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.javaindex ad1aef71f6c..7bd918f764e 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.java@@ -268,7 +268,7 @@ public class CSVParser {int lastChar = in.readAgain();// read the next char and set eol- /* note: unfourtunately isEndOfLine may consumes a character silently.+ /* note: unfortunately isEndOfLine may consumes a character silently.* this has no effect outside of the method. so a simple workaround* is to call 'readAgain' on the stream...* uh: might using objects instead of base-types (jdk1.5 autoboxing!)diff --git a/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java b/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.javaindex 48f373a41d3..90bc90afa96 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java@@ -106,7 +106,7 @@ class ExtendedBufferedReader extends BufferedReader {* Non-blocking reading of len chars into buffer buf starting* at bufferposition off.*- * performs an iteratative read on the underlying stream+ * performs an iterative read on the underlying stream* as long as the following conditions hold:* - less than len chars have been read* - end of stream has not been reacheddiff --git a/solr/core/src/java/org/apache/solr/logging/LoggerInfo.java b/solr/core/src/java/org/apache/solr/logging/LoggerInfo.javaindex 8692ea5e592..0a552763796 100644--- a/solr/core/src/java/org/apache/solr/logging/LoggerInfo.java+++ b/solr/core/src/java/org/apache/solr/logging/LoggerInfo.java@@ -21,7 +21,7 @@ import org.apache.solr.common.util.SimpleOrderedMap;import static org.apache.solr.common.params.CommonParams.NAME;/**- * Wrapper class for Logger implementaions+ * Wrapper class for Logger implementations*/public abstract class LoggerInfo implements Comparable<LoggerInfo> {public static final String ROOT_NAME = "root";diff --git a/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.java b/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.javaindex 85235e651db..8ae901b4bb3 100644--- a/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/BinaryQueryResponseWriter.java@@ -31,7 +31,7 @@ import org.apache.solr.request.SolrQueryRequest;*/public interface BinaryQueryResponseWriter extends QueryResponseWriter{- /**Use it to write the reponse in a binary format+ /**Use it to write the response in a binary format*/public void write(OutputStream out, SolrQueryRequest request, SolrQueryResponse response) throws IOException;}diff --git a/solr/core/src/java/org/apache/solr/response/QueryResponseWriter.java b/solr/core/src/java/org/apache/solr/response/QueryResponseWriter.javaindex c3fdf4a45b3..8f460dd6fa0 100644--- a/solr/core/src/java/org/apache/solr/response/QueryResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/QueryResponseWriter.java@@ -50,7 +50,7 @@ public interface QueryResponseWriter extends NamedListInitializedPlugin {* Write a SolrQueryResponse, this method must be thread save.** <p>- * Information about the request (in particular: formating options) may be+ * Information about the request (in particular: formatting options) may be* obtained from <code>req</code> but the dominant source of information* should be <code>rsp</code>.* <p>diff --git a/solr/core/src/java/org/apache/solr/response/QueryResponseWriterUtil.java b/solr/core/src/java/org/apache/solr/response/QueryResponseWriterUtil.javaindex 64875375ebf..ed47e8488ab 100644--- a/solr/core/src/java/org/apache/solr/response/QueryResponseWriterUtil.java+++ b/solr/core/src/java/org/apache/solr/response/QueryResponseWriterUtil.java@@ -36,7 +36,7 @@ public final class QueryResponseWriterUtil {/*** Writes the response writer's result to the given output stream.* This method inspects the specified writer to determine if it is a- * {@link BinaryQueryResponseWriter} or not to delegate to the approprate method.+ * {@link BinaryQueryResponseWriter} or not to delegate to the appropriate method.* @see BinaryQueryResponseWriter#write(OutputStream,SolrQueryRequest,SolrQueryResponse)* @see BinaryQueryResponseWriter#write(Writer,SolrQueryRequest,SolrQueryResponse)*/diff --git a/solr/core/src/java/org/apache/solr/response/ResultContext.java b/solr/core/src/java/org/apache/solr/response/ResultContext.javaindex b8cd6b2029e..56811a73ec2 100644--- a/solr/core/src/java/org/apache/solr/response/ResultContext.java+++ b/solr/core/src/java/org/apache/solr/response/ResultContext.java@@ -41,7 +41,7 @@ public abstract class ResultContext {public abstract Query getQuery();- // TODO: any reason to allow for retrievial of any filters as well?+ // TODO: any reason to allow for retrieval of any filters as well?/** Note: do not use the request to get the searcher! A cross-core request may have a different* searcher (for the other core) than the original request.diff --git a/solr/core/src/java/org/apache/solr/response/package-info.java b/solr/core/src/java/org/apache/solr/response/package-info.javaindex 6b4bd2c6fed..c1b61489e9a 100644--- a/solr/core/src/java/org/apache/solr/response/package-info.java+++ b/solr/core/src/java/org/apache/solr/response/package-info.java@@ -16,7 +16,7 @@*//**- * API and implementations of {@link org.apache.solr.response.QueryResponseWriter} for formating Solr request responses+ * API and implementations of {@link org.apache.solr.response.QueryResponseWriter} for formatting Solr request responses*/package org.apache.solr.response;diff --git a/solr/core/src/java/org/apache/solr/rest/RestManager.java b/solr/core/src/java/org/apache/solr/rest/RestManager.javaindex 1c095cb23c8..2e1c9bcdf3a 100644--- a/solr/core/src/java/org/apache/solr/rest/RestManager.java+++ b/solr/core/src/java/org/apache/solr/rest/RestManager.java@@ -128,7 +128,7 @@ public class RestManager {}/**- * Returns the set of non-registerable endpoints.+ * Returns the set of non-registrable endpoints.*/public Set<String> getReservedEndpoints() {return Collections.unmodifiableSet(reservedEndpoints);diff --git a/solr/core/src/java/org/apache/solr/schema/CurrencyField.java b/solr/core/src/java/org/apache/solr/schema/CurrencyField.javaindex b1047e38a10..5a0bb1a8a85 100644--- a/solr/core/src/java/org/apache/solr/schema/CurrencyField.java+++ b/solr/core/src/java/org/apache/solr/schema/CurrencyField.java@@ -556,7 +556,7 @@ public class CurrencyField extends FieldType implements SchemaAware, ResourceLoa@Overridepublic long longVal(int doc) {long amount = amounts.longVal(doc);- // bail fast using whatever ammounts defaults to if no value+ // bail fast using whatever amounts defaults to if no value// (if we don't do this early, currencyOrd may be < 0,// causing index bounds exceptionif ( ! exists(doc) ) {diff --git a/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.java b/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.javaindex 3ffe5150b39..34c12e36027 100644--- a/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.java+++ b/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.java@@ -26,7 +26,7 @@ import org.apache.solr.common.SolrException;*/public interface ExchangeRateProvider {/**- * Get the exchange rate betwen the two given currencies+ * Get the exchange rate between the two given currencies* @return the exchange rate as a double* @throws SolrException if the rate is not defined in the provider*/diff --git a/solr/core/src/java/org/apache/solr/schema/TrieDoubleField.java b/solr/core/src/java/org/apache/solr/schema/TrieDoubleField.javaindex b055f1ae9df..edaa0c4f2a0 100644--- a/solr/core/src/java/org/apache/solr/schema/TrieDoubleField.java+++ b/solr/core/src/java/org/apache/solr/schema/TrieDoubleField.java@@ -103,7 +103,7 @@ public class TrieDoubleField extends TrieField implements DoubleValueFieldType {@Overridepublic void fillValue(int doc) {- // micro optimized (eliminate at least one redudnent ord check)+ // micro optimized (eliminate at least one redundant ord check)//mval.exists = exists(doc);//mval.value = mval.exists ? doubleVal(doc) : 0.0D;BytesRef bytes = view.get(doc);diff --git a/solr/core/src/java/org/apache/solr/schema/TrieField.java b/solr/core/src/java/org/apache/solr/schema/TrieField.javaindex bed087e09be..3483909143f 100644--- a/solr/core/src/java/org/apache/solr/schema/TrieField.java+++ b/solr/core/src/java/org/apache/solr/schema/TrieField.java@@ -309,7 +309,7 @@ public class TrieField extends PrimitiveFieldType {* field is not supported for this field type** @param choice the selector Type to use, will never be null- * @param field the field to use, garunteed to be multivalued.+ * @param field the field to use, guaranteed to be multivalued.* @see #getSingleValueSource(MultiValueSelector,SchemaField,QParser)*/protected ValueSource getSingleValueSource(SortedSetSelector.Type choice, SchemaField field) {diff --git a/solr/core/src/java/org/apache/solr/schema/TrieFloatField.java b/solr/core/src/java/org/apache/solr/schema/TrieFloatField.javaindex 38210a30b01..8d1739e6782 100644--- a/solr/core/src/java/org/apache/solr/schema/TrieFloatField.java+++ b/solr/core/src/java/org/apache/solr/schema/TrieFloatField.java@@ -103,7 +103,7 @@ public class TrieFloatField extends TrieField implements FloatValueFieldType {@Overridepublic void fillValue(int doc) {- // micro optimized (eliminate at least one redudnent ord check)+ // micro optimized (eliminate at least one redundant ord check)//mval.exists = exists(doc);//mval.value = mval.exists ? floatVal(doc) : 0.0F;//diff --git a/solr/core/src/java/org/apache/solr/schema/TrieIntField.java b/solr/core/src/java/org/apache/solr/schema/TrieIntField.javaindex 2a953b378e5..07d9c74f472 100644--- a/solr/core/src/java/org/apache/solr/schema/TrieIntField.java+++ b/solr/core/src/java/org/apache/solr/schema/TrieIntField.java@@ -101,7 +101,7 @@ public class TrieIntField extends TrieField implements IntValueFieldType {@Overridepublic void fillValue(int doc) {- // micro optimized (eliminate at least one redudnent ord check)+ // micro optimized (eliminate at least one redundant ord check)//mval.exists = exists(doc);//mval.value = mval.exists ? intVal(doc) : 0;//diff --git a/solr/core/src/java/org/apache/solr/schema/TrieLongField.java b/solr/core/src/java/org/apache/solr/schema/TrieLongField.javaindex 54239bd27b1..28345af9622 100644--- a/solr/core/src/java/org/apache/solr/schema/TrieLongField.java+++ b/solr/core/src/java/org/apache/solr/schema/TrieLongField.java@@ -101,7 +101,7 @@ public class TrieLongField extends TrieField implements LongValueFieldType {@Overridepublic void fillValue(int doc) {- // micro optimized (eliminate at least one redudnent ord check)+ // micro optimized (eliminate at least one redundant ord check)//mval.exists = exists(doc);//mval.value = mval.exists ? longVal(doc) : 0;//diff --git a/solr/core/src/java/org/apache/solr/schema/UUIDField.java b/solr/core/src/java/org/apache/solr/schema/UUIDField.javaindex e83359c8590..d40e5a52773 100644--- a/solr/core/src/java/org/apache/solr/schema/UUIDField.java+++ b/solr/core/src/java/org/apache/solr/schema/UUIDField.java@@ -38,7 +38,7 @@ import org.apache.solr.update.processor.UUIDUpdateProcessorFactory; // jdoc* configured as the unique key field) since the result will be that each* replica of each document will get a unique UUID value.* Using {@link UUIDUpdateProcessorFactory} to generate UUID values when- * documents are added is recomended instead.+ * documents are added is recommended instead.* </p>** @see UUID#toStringdiff --git a/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.javaindex f4a0fbf518b..9a22221d638 100644--- a/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java+++ b/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java@@ -2530,7 +2530,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {}}- // LUCENE-6808 workarround+ // LUCENE-6808 workaroundprivate static Object cloneIfBytesRef(Object val) {if (val instanceof BytesRef) {return BytesRef.deepCopyOf((BytesRef) val);@@ -2631,7 +2631,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {}if (0 <= lastCompare) {- // we're either not competitive, or we're completley tied with another doc that's already group head+ // we're either not competitive, or we're completely tied with another doc that's already group head// that's already been selectedreturn false;} // else...diff --git a/solr/core/src/java/org/apache/solr/search/CursorMark.java b/solr/core/src/java/org/apache/solr/search/CursorMark.javaindex 633028689c7..38fced567a9 100644--- a/solr/core/src/java/org/apache/solr/search/CursorMark.java+++ b/solr/core/src/java/org/apache/solr/search/CursorMark.java@@ -56,7 +56,7 @@ public final class CursorMark {* The raw, unmarshalled, sort values (that corrispond with the SortField's in the* SortSpec) for knowing which docs this cursor should "search after". If this* list is null, then we have no specific values to "search after" and we- * should start from the very begining of the sorted list of documents matching+ * should start from the very beginning of the sorted list of documents matching* the query.*/private List<Object> values = null;diff --git a/solr/core/src/java/org/apache/solr/search/DocSet.java b/solr/core/src/java/org/apache/solr/search/DocSet.javaindex 91d8e108886..dd8f024a8ad 100644--- a/solr/core/src/java/org/apache/solr/search/DocSet.java+++ b/solr/core/src/java/org/apache/solr/search/DocSet.java@@ -48,7 +48,7 @@ public interface DocSet extends Closeable, Accountable /* extends Collection<Int** <p>* This method may be faster then <code>add(doc)</code> in some- * implementaions provided the caller is certain of the precondition.+ * implementations provided the caller is certain of the precondition.* </p>** @see #adddiff --git a/solr/core/src/java/org/apache/solr/search/DocSetBase.java b/solr/core/src/java/org/apache/solr/search/DocSetBase.javaindex 3c59af64732..fa83981aba7 100644--- a/solr/core/src/java/org/apache/solr/search/DocSetBase.java+++ b/solr/core/src/java/org/apache/solr/search/DocSetBase.java@@ -27,7 +27,7 @@ import org.apache.lucene.util.BitDocIdSet;import org.apache.lucene.util.FixedBitSet;import org.apache.solr.common.SolrException;-/** A base class that may be usefull for implementing DocSets */+/** A base class that may be useful for implementing DocSets */abstract class DocSetBase implements DocSet {public static FixedBitSet toBitSet(DocSet set) {diff --git a/solr/core/src/java/org/apache/solr/search/LFUCache.java b/solr/core/src/java/org/apache/solr/search/LFUCache.javaindex 9bf544b433e..2b593c6f57a 100644--- a/solr/core/src/java/org/apache/solr/search/LFUCache.java+++ b/solr/core/src/java/org/apache/solr/search/LFUCache.java@@ -272,11 +272,11 @@ public class LFUCache<K, V> implements SolrCache<K, V> {long cevictions = 0;// NOTE: It is safe to iterate on a CopyOnWriteArrayList- for (ConcurrentLFUCache.Stats statistiscs : statsList) {- clookups += statistiscs.getCumulativeLookups();- chits += statistiscs.getCumulativeHits();- cinserts += statistiscs.getCumulativePuts();- cevictions += statistiscs.getCumulativeEvictions();+ for (ConcurrentLFUCache.Stats statistics : statsList) {+ clookups += statistics.getCumulativeLookups();+ chits += statistics.getCumulativeHits();+ cinserts += statistics.getCumulativePuts();+ cevictions += statistics.getCumulativeEvictions();}lst.add("cumulative_lookups", clookups);lst.add("cumulative_hits", chits);diff --git a/solr/core/src/java/org/apache/solr/search/QueryResultKey.java b/solr/core/src/java/org/apache/solr/search/QueryResultKey.javaindex d42ba45f188..bcf8104b510 100644--- a/solr/core/src/java/org/apache/solr/search/QueryResultKey.java+++ b/solr/core/src/java/org/apache/solr/search/QueryResultKey.java@@ -99,7 +99,7 @@ public final class QueryResultKey {* already been found to have equal hashCodes, since the unordered comparison aspects* of the logic are not cheap.*- * @return true if the lists of equivilent other then the ordering+ * @return true if the lists of equivalent other then the ordering*/private static boolean unorderedCompare(List<Query> fqList1, List<Query> fqList2) {// Do fast version first, expecting that filters are usually in the same order@@ -128,7 +128,7 @@ public final class QueryResultKey {* This method should only be called on lists which are the same size, and where* all items with an index less then the specified start index are the same.*- * @return true if the list items after start are equivilent other then the ordering+ * @return true if the list items after start are equivalent other then the ordering*/private static boolean unorderedCompare(List<Query> fqList1, List<Query> fqList2, int start) {assert null != fqList1;@@ -137,8 +137,8 @@ public final class QueryResultKey {final int sz = fqList1.size();assert fqList2.size() == sz;- // SOLR-5618: if we had a garuntee that the lists never contained any duplicates,- // this logic could be a lot simplier+ // SOLR-5618: if we had a guarantee that the lists never contained any duplicates,+ // this logic could be a lot simpler//// (And of course: if the SolrIndexSearcher / QueryCommmand was ever changed to// sort the filter query list, then this whole method could be eliminated).diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.javaindex 6ff54699a8a..23a6db3189b 100644--- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java+++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java@@ -222,7 +222,7 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable, SolrI/*** Builds the necessary collector chain (via delegate wrapping) and executes the query against it. This method takes* into consideration both the explicitly provided collector and postFilter as well as any needed collector wrappers- * for dealing with options specified in the QueryCOmmand.+ * for dealing with options specified in the QueryCommand.*/private void buildAndRunCollectorChain(QueryResult qr, Query query, Collector collector, QueryCommand cmd,DelegatingCollector postFilter) throws IOException {diff --git a/solr/core/src/java/org/apache/solr/search/SolrReturnFields.java b/solr/core/src/java/org/apache/solr/search/SolrReturnFields.javaindex 34ef79e674f..a700d7be32d 100644--- a/solr/core/src/java/org/apache/solr/search/SolrReturnFields.java+++ b/solr/core/src/java/org/apache/solr/search/SolrReturnFields.java@@ -134,7 +134,7 @@ public class SolrReturnFields extends ReturnFields {// TODO??? need to fill up the fields with matching field names in the index// and add them to okFieldNames?// maybe just get all fields?- // this would disable field selection optimization... i think thatis OK+ // this would disable field selection optimization... i think that is OKfields.clear(); // this will get all fields, and use wantsField to limit}diff --git a/solr/core/src/java/org/apache/solr/search/SortedIntDocSet.java b/solr/core/src/java/org/apache/solr/search/SortedIntDocSet.javaindex 514d5129482..0cb5d08f1da 100644--- a/solr/core/src/java/org/apache/solr/search/SortedIntDocSet.java+++ b/solr/core/src/java/org/apache/solr/search/SortedIntDocSet.java@@ -105,7 +105,7 @@ public class SortedIntDocSet extends DocSetBase {// FUTURE: try partitioning like a sort algorithm. Pick the midpoint of the big// array, find where that should be in the small array, and then recurse with// the top and bottom half of both arrays until they are small enough to use- // a fallback insersection method.+ // a fallback intersection method.// NOTE: I tried this and it worked, but it was actually slower than this current// highly optimized approach.@@ -248,7 +248,7 @@ public class SortedIntDocSet extends DocSetBase {int i=0,j=0;int doca=a[i],docb=b[j];for(;;) {- // switch on the sign bit somehow? Hopefull JVM is smart enough to just test once.+ // switch on the sign bit somehow? Hopefully JVM is smart enough to just test once.// Since set a is less dense then set b, doca is likely to be greater than docb so// check that case first. This resulted in a 13% speedup.diff --git a/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java b/solr/core/src/java/org/apache/solr/search/ValueSourceParser.javaindex aa94a2e44f4..4a1a4b11305 100644--- a/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java+++ b/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java@@ -94,14 +94,14 @@ public abstract class ValueSourceParser implements NamedListInitializedPlugin {/* standard functions */public static Map<String, ValueSourceParser> standardValueSourceParsers = new HashMap<>();- /** Adds a new parser for the name and returns any existing one that was overriden.+ /** Adds a new parser for the name and returns any existing one that was overridden.* This is not thread safe.*/public static ValueSourceParser addParser(String name, ValueSourceParser p) {return standardValueSourceParsers.put(name, p);}- /** Adds a new parser for the name and returns any existing one that was overriden.+ /** Adds a new parser for the name and returns any existing one that was overridden.* This is not thread safe.*/public static ValueSourceParser addParser(NamedParser p) {@@ -419,7 +419,7 @@ public abstract class ValueSourceParser implements NamedListInitializedPlugin {FieldType.MultiValueSelector selector = FieldType.MultiValueSelector.lookup(s);if (null == selector) {throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,- "Multi-Valued field selector '"+s+"' not spported");+ "Multi-Valued field selector '"+s+"' not supported");}return f.getType().getSingleValueSource(selector, f, fp);}diff --git a/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java b/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.javaindex 7382fdcabf0..79995413d49 100644--- a/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java+++ b/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java@@ -203,7 +203,7 @@ public class FileFloatSource extends ValueSource {public void resetCache(){synchronized(readerCache){- // Map.clear() is optional and can throw UnsipportedOperationException,+ // Map.clear() is optional and can throw UnsupportedOperationException,// but readerCache is WeakHashMap and it supports clear().readerCache.clear();}diff --git a/solr/core/src/java/org/apache/solr/search/grouping/distributed/requestfactory/TopGroupsShardRequestFactory.java b/solr/core/src/java/org/apache/solr/search/grouping/distributed/requestfactory/TopGroupsShardRequestFactory.javaindex bdca03f0574..ca73a30e164 100644--- a/solr/core/src/java/org/apache/solr/search/grouping/distributed/requestfactory/TopGroupsShardRequestFactory.java+++ b/solr/core/src/java/org/apache/solr/search/grouping/distributed/requestfactory/TopGroupsShardRequestFactory.java@@ -105,7 +105,7 @@ public class TopGroupsShardRequestFactory implements ShardRequestFactory {sreq.params.set(CommonParams.START, "0");}if (rb.shards_rows > -1) {- // if the client set shards.rows set this explicity+ // if the client set shards.rows set this explicitlysreq.params.set(CommonParams.ROWS, rb.shards_rows);} else {sreq.params.set(CommonParams.ROWS, rb.getSortSpec().getOffset() + rb.getSortSpec().getCount());diff --git a/solr/core/src/java/org/apache/solr/security/AuthenticationPlugin.java b/solr/core/src/java/org/apache/solr/security/AuthenticationPlugin.javaindex 47daec1dd14..105f307c055 100644--- a/solr/core/src/java/org/apache/solr/security/AuthenticationPlugin.java+++ b/solr/core/src/java/org/apache/solr/security/AuthenticationPlugin.java@@ -65,8 +65,7 @@ public abstract class AuthenticationPlugin implements Closeable {* @param request the http request* @param response the http response* @param filterChain the servlet filter chain- * @throws Exception any exception thrown during the authentication, e.g.- * PriviledgedAccessException+ * @throws Exception any exception thrown during the authentication, e.g. PrivilegedActionException*/public abstract void doAuthenticate(ServletRequest request, ServletResponse response,FilterChain filterChain) throws Exception;diff --git a/solr/core/src/java/org/apache/solr/spelling/IndexBasedSpellChecker.java b/solr/core/src/java/org/apache/solr/spelling/IndexBasedSpellChecker.javaindex 01601434d64..aa6e0499eb4 100644--- a/solr/core/src/java/org/apache/solr/spelling/IndexBasedSpellChecker.java+++ b/solr/core/src/java/org/apache/solr/spelling/IndexBasedSpellChecker.java@@ -30,7 +30,7 @@ import java.io.IOException;/*** <p>- * A spell checker implementation that loads words from Solr as well as arbitary Lucene indices.+ * A spell checker implementation that loads words from Solr as well as arbitrary Lucene indices.* </p>** <p>diff --git a/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java b/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.javaindex 595791dabcc..3afc66c24d8 100644--- a/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java+++ b/solr/core/src/java/org/apache/solr/update/CdcrUpdateLog.java@@ -595,7 +595,7 @@ public class CdcrUpdateLog extends UpdateLog {*/public void forwardSeek(CdcrLogReader subReader) {// If a subreader has a null tlog reader, does nothing- // This can happend if a subreader is instantiated from a non-initialised parent reader, or if the subreader+ // This can happened if a subreader is instantiated from a non-initialised parent reader, or if the subreader// has been closed.if (subReader.tlogReader == null) {return;diff --git a/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java b/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.javaindex 4fe869c25c9..5cc77d2ecc9 100644--- a/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java+++ b/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java@@ -85,7 +85,7 @@ public class UpdateShardHandler {/*** In general, RecoveryStrategy threads do not do disk IO, but they open and close SolrCores- * in async threads, amoung other things, and can trigger disk IO, so we use this alternate+ * in async threads, among other things, and can trigger disk IO, so we use this alternate* executor rather than the 'updateExecutor', which is interrupted on shutdown.** @return executor for {@link RecoveryStrategy} thread which will not be interrupted on close.@@ -96,7 +96,7 @@ public class UpdateShardHandler {public void close() {try {- // we interrupt on purpose here, but this exectuor should not run threads that do disk IO!+ // we interrupt on purpose here, but this executor should not run threads that do disk IO!ExecutorUtil.shutdownWithInterruptAndAwaitTermination(updateExecutor);ExecutorUtil.shutdownAndAwaitTermination(recoveryExecutor);} catch (Exception e) {diff --git a/solr/core/src/java/org/apache/solr/update/processor/AllValuesOrNoneFieldMutatingUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/AllValuesOrNoneFieldMutatingUpdateProcessor.javaindex 5169435d8bf..52726ea862b 100644--- a/solr/core/src/java/org/apache/solr/update/processor/AllValuesOrNoneFieldMutatingUpdateProcessor.java+++ b/solr/core/src/java/org/apache/solr/update/processor/AllValuesOrNoneFieldMutatingUpdateProcessor.java@@ -83,7 +83,7 @@ public abstract class AllValuesOrNoneFieldMutatingUpdateProcessor extends FieldMfor (final Object srcVal : vals) {final Object destVal = mutateValue(srcVal);if (SKIP_FIELD_VALUE_LIST_SINGLETON == destVal) {- log.debug("field '{}' {} value '{}' is not mutatable, so no values will be mutated",+ log.debug("field '{}' {} value '{}' is not mutable, so no values will be mutated",new Object[] { srcField.getName(), srcVal.getClass().getSimpleName(), srcVal });return srcField;}diff --git a/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessor.javaindex b752565cd6d..9344fb9a5fd 100644--- a/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessor.java+++ b/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessor.java@@ -80,7 +80,7 @@ class ClassificationUpdateProcessor}/**- * @param cmd the update command in input conaining the Document to classify+ * @param cmd the update command in input containing the Document to classify* @throws IOException If there is a low-level I/O error*/@Overridediff --git a/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.javaindex 79b3240f005..a70f21d40be 100644--- a/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java@@ -55,7 +55,7 @@ public class ClassificationUpdateProcessorFactory extends UpdateRequestProcessorprivate int minDf; // knn specific - the minimum Document Frequency for considering a term- private int k; // knn specific - thw window of top results to evaluate, when assgning the class+ private int k; // knn specific - thw window of top results to evaluate, when assigning the class@Overridepublic void init(final NamedList args) {diff --git a/solr/core/src/java/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.javaindex 34b92b04db8..9f8e88a3bac 100644--- a/solr/core/src/java/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.java@@ -44,7 +44,7 @@ import org.apache.commons.lang.StringUtils;* For example, in the configuration below, any "single valued" string and* text field which is found to contain multiple values <i>except</i> for* the <code>primary_author</code> field will be concatenated using the- * string "<code>; </code>" as a delimeter. For the+ * string "<code>; </code>" as a delimiter. For the* <code>primary_author</code> field, the multiple values will be left* alone for <code>FirstFieldValueUpdateProcessorFactory</code> to deal with.* </p>diff --git a/solr/core/src/java/org/apache/solr/update/processor/DocBasedVersionConstraintsProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/DocBasedVersionConstraintsProcessorFactory.javaindex 4ecf37168c9..c21ea763c9c 100644--- a/solr/core/src/java/org/apache/solr/update/processor/DocBasedVersionConstraintsProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/DocBasedVersionConstraintsProcessorFactory.java@@ -229,7 +229,7 @@ public class DocBasedVersionConstraintsProcessorFactory extends UpdateRequestProprivate Object convertFieldValueUsingType(SchemaField sf, final Object rawValue) {if (rawValue instanceof CharSequence) {// in theory, the FieldType might still be CharSequence based,- // but in that case trust it to do an identiy conversion...+ // but in that case trust it to do an identity conversion...FieldType fieldType = userVersionField.getType();BytesRefBuilder term = new BytesRefBuilder();fieldType.readableToIndexed((CharSequence)rawValue, term);@@ -468,7 +468,7 @@ public class DocBasedVersionConstraintsProcessorFactory extends UpdateRequestPro// - deleteVersionParam to do a version check// - some new boolean param to determine if a stub document gets added in place?try {- // drop the delete, and instead propogate an AddDoc that+ // drop the delete, and instead propagate an AddDoc that// replaces the doc with a new "empty" one that records the deleted versionSolrInputDocument newDoc = new SolrInputDocument();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 b8a4b5785bc..ffef1f33987 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@@ -247,7 +247,7 @@ public final class DocExpirationUpdateProcessorFactory} catch (SolrException e) {throw confErr(DEL_CHAIN_NAME_CONF + " does not exist: " + deleteChainName, e);}- // schedule recuring deletion+ // schedule recurring deletioninitDeleteExpiredDocsScheduler(core);}}@@ -331,9 +331,9 @@ public final class DocExpirationUpdateProcessorFactoryfinal DateMathParser dmp = new DateMathParser();// TODO: should we try to accept things like "1DAY" as well as "+1DAY" ?// How?- // 'startsWith("+")' is a bad idea because it would cause porblems with+ // 'startsWith("+")' is a bad idea because it would cause problems with// things like "/DAY+1YEAR"- // Maybe catch ParseException and rety with "+" prepended?+ // Maybe catch ParseException and retry with "+" prepended?doc.addField(expireField, dmp.parseMath(math));} catch (ParseException pe) {throw new SolrException(BAD_REQUEST, "Can't parse ttl as date math: " + math, pe);@@ -419,11 +419,11 @@ public final class DocExpirationUpdateProcessorFactory} catch (IOException ioe) {log.error("IOException in periodic deletion of expired docs: " +ioe.getMessage(), ioe);- // DO NOT RETHROW: ScheduledExecutor will supress subsequent executions+ // DO NOT RETHROW: ScheduledExecutor will suppress subsequent executions} catch (RuntimeException re) {log.error("Runtime error in periodic deletion of expired docs: " +re.getMessage(), re);- // DO NOT RETHROW: ScheduledExecutor will supress subsequent executions+ // DO NOT RETHROW: ScheduledExecutor will suppress subsequent executions} finally {SolrRequestInfo.clearRequestInfo();}@@ -436,12 +436,12 @@ public final class DocExpirationUpdateProcessorFactory/*** <p>* Helper method that returns true if the Runnable managed by this factory- * should be responseible of doing periodica deletes.+ * should be responsible of doing periodical deletes.* </p>* <p>- * In simple standalone instalations this method always returns true,+ * In simple standalone installations this method always returns true,* but in cloud mode it will be true if and only if we are currently the leader- * of the (active) slice with the first name (lexigraphically).+ * of the (active) slice with the first name (lexicographically).* </p>* <p>* If this method returns false, it may have also logged a message letting the userdiff --git a/solr/core/src/java/org/apache/solr/update/processor/RunUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/RunUpdateProcessorFactory.javaindex 0e401953e7d..c301b172ab6 100644--- a/solr/core/src/java/org/apache/solr/update/processor/RunUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/RunUpdateProcessorFactory.java@@ -26,7 +26,7 @@ import org.apache.solr.update.*;/*** Executes the update commands using the underlying UpdateHandler.- * Allmost all processor chains should end with an instance of+ * Almost all processor chains should end with an instance of* <code>RunUpdateProcessorFactory</code> unless the user is explicitly* executing the update commands in an alternative custom* <code>UpdateRequestProcessorFactory</code>diff --git a/solr/core/src/java/org/apache/solr/update/processor/TolerantUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/TolerantUpdateProcessor.javaindex f9437f58e58..bf629cc286d 100644--- a/solr/core/src/java/org/apache/solr/update/processor/TolerantUpdateProcessor.java+++ b/solr/core/src/java/org/apache/solr/update/processor/TolerantUpdateProcessor.java@@ -202,8 +202,8 @@ public class TolerantUpdateProcessor extends UpdateRequestProcessor {try {super.processMergeIndexes(cmd);} catch (Throwable t) {- // we're not tolerante of errors from this type of command, but we- // do need to track it so we can annotate it with any other errors we were allready tolerant of+ // we're not tolerant of errors from this type of command, but we+ // do need to track it so we can annotate it with any other errors we were already tolerant offirstErrTracker.caught(t);throw t;}@@ -214,8 +214,8 @@ public class TolerantUpdateProcessor extends UpdateRequestProcessor {try {super.processCommit(cmd);} catch (Throwable t) {- // we're not tolerante of errors from this type of command, but we- // do need to track it so we can annotate it with any other errors we were allready tolerant of+ // we're not tolerant of errors from this type of command, but we+ // do need to track it so we can annotate it with any other errors we were already tolerant offirstErrTracker.caught(t);throw t;}@@ -226,8 +226,8 @@ public class TolerantUpdateProcessor extends UpdateRequestProcessor {try {super.processRollback(cmd);} catch (Throwable t) {- // we're not tolerante of errors from this type of command, but we- // do need to track it so we can annotate it with any other errors we were allready tolerant of+ // we're not tolerant of errors from this type of command, but we+ // do need to track it so we can annotate it with any other errors we were already tolerant offirstErrTracker.caught(t);throw t;}@@ -298,7 +298,7 @@ public class TolerantUpdateProcessor extends UpdateRequestProcessor {// decide if we have hit a situation where we know an error needs to be thrown.if ((DistribPhase.TOLEADER.equals(distribPhase) ? 0 : maxErrors) < knownErrors.size()) {- // NOTE: even if maxErrors wasn't exceeeded, we need to throw an error when we have any errors if we're+ // NOTE: even if maxErrors wasn't exceeded, we need to throw an error when we have any errors if we're// a leader that was forwarded to by another node so that the forwarding node knows we encountered some// problems and can aggregate the results@@ -361,7 +361,7 @@ public class TolerantUpdateProcessor extends UpdateRequestProcessor {** This method will keep a record that this update processor has already thrown the exception, and do* nothing on future calls, so subsequent update processor methods can update the metadata but won't- * inadvertantly re-throw this (or any other) cascading exception by mistake.+ * inadvertently re-throw this (or any other) cascading exception by mistake.*/public void throwFirst() throws SolrException {assert null != first : "caught was never called?";diff --git a/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java b/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.javaindex 4629425aa82..6c5567f7f23 100644--- a/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java+++ b/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java@@ -76,7 +76,7 @@ import java.util.Objects;* </ul>** <p>- * Allmost all processor chains should end with an instance of+ * Almost all processor chains should end with an instance of* <code>RunUpdateProcessorFactory</code> unless the user is explicitly* executing the update commands in an alternative custom* <code>UpdateRequestProcessorFactory</code>. If a chain includesdiff --git a/solr/core/src/java/org/apache/solr/util/DateMathParser.java b/solr/core/src/java/org/apache/solr/util/DateMathParser.javaindex 489a5aad8ec..9ffdf73e976 100644--- a/solr/core/src/java/org/apache/solr/util/DateMathParser.java+++ b/solr/core/src/java/org/apache/solr/util/DateMathParser.java@@ -114,7 +114,7 @@ public class DateMathParser {.parseCaseInsensitive().parseLenient().appendInstant().toFormatter(Locale.ROOT);/**- * A mapping from (uppercased) String labels idenyifying time units,+ * A mapping from (uppercased) String labels identifying time units,* to the corresponding Calendar constant used to set/add/roll that unit* of measurement.*@@ -134,7 +134,7 @@ public class DateMathParser {// NOTE: consciously choosing not to support WEEK at this time,// because of complexity in rounding down to the nearest week- // arround a month/year boundry.+ // around a month/year boundary.// (Not to mention: it's not clear what people would *expect*)//// If we consider adding some time of "week" support, thendiff --git a/solr/core/src/java/org/apache/solr/util/PivotListEntry.java b/solr/core/src/java/org/apache/solr/util/PivotListEntry.javaindex 9f580c0c136..f81e0397ca0 100644--- a/solr/core/src/java/org/apache/solr/util/PivotListEntry.java+++ b/solr/core/src/java/org/apache/solr/util/PivotListEntry.java@@ -80,7 +80,7 @@ public enum PivotListEntry {assert this.minIndex < pivotList.size();return pivotList.getVal(this.minIndex);}- // otherweise...+ // otherwise...// scan starting at the min/optional indexreturn pivotList.get(this.getName(), this.minIndex);}diff --git a/solr/core/src/java/org/apache/solr/util/VersionedFile.java b/solr/core/src/java/org/apache/solr/util/VersionedFile.javaindex 45aaef9bc71..739858a0be9 100644--- a/solr/core/src/java/org/apache/solr/util/VersionedFile.java+++ b/solr/core/src/java/org/apache/solr/util/VersionedFile.java@@ -81,7 +81,7 @@ public class VersionedFileis = new FileInputStream(f);}- // delete old files only after we have successfuly opened the newest+ // delete old files only after we have successfully opened the newestif (oldFiles != null) {delete(oldFiles);}@@ -99,7 +99,7 @@ public class VersionedFiletry {Files.deleteIfExists(df.toPath());} catch (IOException cause) {- // TODO: should this class care if a file couldnt be deleted?+ // TODO: should this class care if a file couldn't be deleted?// this just emulates previous behavior, where only SecurityException would be handled.}// deleteList.remove(df);diff --git a/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java b/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.javaindex f5a3132a9e3..d7875d80863 100644--- a/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java@@ -104,7 +104,7 @@ public class DistribCursorPagingTest extends AbstractFullDistribZkTestBase {}private void doBadInputTest() throws Exception {- // sometimes seed some data, othertimes use an empty index+ // sometimes seed some data, other times use an empty indexif (random().nextBoolean()) {indexDoc(sdoc("id", "42", "str", "z", "float", "99.99", "int", "42"));indexDoc(sdoc("id", "66", "str", "x", "float", "22.00", "int", "-66"));@@ -697,15 +697,15 @@ public class DistribCursorPagingTest extends AbstractFullDistribZkTestBase {* Given a set of params, executes a cursor query using {@link CursorMarkParams#CURSOR_MARK_START}* and then continuously walks the results using {@link CursorMarkParams#CURSOR_MARK_START} as long* as a non-0 number of docs ar returned. This method records the the set of all id's- * (must be postive ints) encountered and throws an assertion failure if any id is+ * (must be positive ints) encountered and throws an assertion failure if any id is* encountered more then once, or if the set grows above maxSize* </p>** <p>- * Note that this method explicily uses the "cloudClient" for executing the queries,+ * Note that this method explicitly uses the "cloudClient" for executing the queries,* instead of relying on the test infrastructure to execute the queries redundently- * aainst both the cloud client as well as a control client. This is because term stat- * differences in a sharded setup can result in differnent scores for documents compared+ * against both the cloud client as well as a control client. This is because term stat+ * differences in a sharded setup can result in different scores for documents compared* to the control index -- which can affect the sorting in some cases and cause false* negatives in the response comparisons (even if we don't include "score" in the "fl")* </p>diff --git a/solr/core/src/test/org/apache/solr/cloud/DistribDocExpirationUpdateProcessorTest.java b/solr/core/src/test/org/apache/solr/cloud/DistribDocExpirationUpdateProcessorTest.javaindex eaf2460ccd6..e1d99227315 100644--- a/solr/core/src/test/org/apache/solr/cloud/DistribDocExpirationUpdateProcessorTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/DistribDocExpirationUpdateProcessorTest.java@@ -125,7 +125,7 @@ public class DistribDocExpirationUpdateProcessorTest extends AbstractFullDistrib// TODO: above logic verifies that deleteByQuery happens on all nodes, and ...// doesn't affect searcher re-open on shards w/o expired docs ... can we also verify// that *only* one node is sending the deletes ?- // (ie: no flood of redundent deletes?)+ // (ie: no flood of redundant deletes?)}@@ -168,7 +168,7 @@ public class DistribDocExpirationUpdateProcessorTest extends AbstractFullDistrib/*** Executes a query over and over against the cloudClient every 5 seconds* until the numFound is 0 or the maxTimeLimitSeconds is exceeded.- * Query is garunteed to be executed at least once.+ * Query is guaranteed to be executed at least once.*/private void waitForNoResults(int maxTimeLimitSeconds,SolrParams params)diff --git a/solr/core/src/test/org/apache/solr/cloud/RemoteQueryErrorTest.java b/solr/core/src/test/org/apache/solr/cloud/RemoteQueryErrorTest.javaindex 73d9396191d..24f9696b732 100644--- a/solr/core/src/test/org/apache/solr/cloud/RemoteQueryErrorTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/RemoteQueryErrorTest.java@@ -60,7 +60,7 @@ public class RemoteQueryErrorTest extends AbstractFullDistribZkTestBase {try {SolrInputDocument emptyDoc = new SolrInputDocument();solrClient.add(emptyDoc);- fail("Expected unique key exceptoin");+ fail("Expected unique key exception");} catch (SolrException ex) {assertThat(ex.getMessage(), containsString("Document is missing mandatory uniqueKey field: id"));} catch(Exception ex) {diff --git a/solr/core/src/test/org/apache/solr/cloud/TestCloudPivotFacet.java b/solr/core/src/test/org/apache/solr/cloud/TestCloudPivotFacet.javaindex dc7e0b04c92..a29e35764d4 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestCloudPivotFacet.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestCloudPivotFacet.java@@ -516,7 +516,7 @@ public class TestCloudPivotFacet extends AbstractFullDistribZkTestBase {// randomly decide which stat tag to use// if this is 0, or stats aren't enabled, we'll be asking for a tag that doesn't exist- // ...which should be fine (just like excluding a taged fq that doesn't exist)+ // ...which should be fine (just like excluding a tagged fq that doesn't exist)final int statTag = TestUtil.nextInt(random(), -1, 4);if (0 <= statTag) {diff --git a/solr/core/src/test/org/apache/solr/cloud/TestMiniSolrCloudClusterSSL.java b/solr/core/src/test/org/apache/solr/cloud/TestMiniSolrCloudClusterSSL.javaindex a041348797c..e069cb82096 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestMiniSolrCloudClusterSSL.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestMiniSolrCloudClusterSSL.java@@ -241,7 +241,7 @@ public class TestMiniSolrCloudClusterSSL extends SolrTestCaseJ4 {}// sanity check the HttpClient used under the hood by our the cluster's CloudSolrClient- // ensure it has the neccessary protocols/credentials for each jetty server+ // ensure it has the necessary protocols/credentials for each jetty server//// NOTE: we're not responsible for closing the cloud clientfinal HttpClient cloudClient = cluster.getSolrClient().getLbClient().getHttpClient();@@ -265,7 +265,7 @@ public class TestMiniSolrCloudClusterSSL extends SolrTestCaseJ4 {// verify simple HTTP(S) client can't do HEAD request for URL with wrong protocoltry (CloseableHttpClient client = getSslAwareClientWithNoClientCerts()) {final String wrongUrl = wrongBaseURL + "/admin/cores";- // vastly diff exception details betwen plain http vs https, not worried about details here+ // vastly diff exception details between plain http vs https, not worried about details hereexpectThrows(IOException.class, () -> {doHeadRequest(client, wrongUrl);});@@ -335,7 +335,7 @@ public class TestMiniSolrCloudClusterSSL extends SolrTestCaseJ4 {*/public static HttpSolrClient getRandomizedHttpSolrClient(String url) {// NOTE: at the moment, SolrTestCaseJ4 already returns "new HttpSolrClient" most of the time,- // so this method may seem redundent -- but the point here is to sanity check 2 things:+ // so this method may seem redundant -- but the point here is to sanity check 2 things:// 1) a direct test that "new HttpSolrClient" works given the current JVM/sysprop defaults// 2) a sanity check that whatever getHttpSolrClient(String) returns will work regardless of// current test configuration.diff --git a/solr/core/src/test/org/apache/solr/cloud/TestRandomRequestDistribution.java b/solr/core/src/test/org/apache/solr/cloud/TestRandomRequestDistribution.javaindex 264d4296bad..1c1c5c1ca33 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestRandomRequestDistribution.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestRandomRequestDistribution.java@@ -194,7 +194,7 @@ public class TestRandomRequestDistribution extends AbstractFullDistribZkTestBase// To make sure that's true we keep querying the down replica// If queries are getting processed by the down replica then the cluster state hasn't updated for that replica// locally- // So we keep trying till it has updated and then verify if ALL queries go to the active reploca+ // So we keep trying till it has updated and then verify if ALL queries go to the active replicalong count = 0;while (true) {count++;diff --git a/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.java b/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.javaindex 3bf6b7066dc..80b717eb315 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.java@@ -150,17 +150,17 @@ public class TestStressLiveNodes extends SolrCloudTestCase {actualLiveNodes, cachedLiveNodes);- // start spining up some threads to add some live_node children in parallel+ // start spinning up some threads to add some live_node children in parallel// we don't need a lot of threads or nodes (we don't want to swamp the CPUs- // just bursts of conccurent adds) but we do want to randomize it a bit so we increase the+ // just bursts of concurrent adds) but we do want to randomize it a bit so we increase the// odds of concurrent watchers firing regardless of the num CPUs or load on the machine running// the test (but we deliberately don't look at availableProcessors() since we want randomization// consistency across all machines for a given seed)final int numThreads = TestUtil.nextInt(random(), 2, 5);// use same num for all thrashers, to increase likely hood of them all competing- // (diff random number would mean heavy concurency only for ~ the first N=lowest num requetss)+ // (diff random number would mean heavy concurrency only for ~ the first N=lowest num requests)//// this does not need to be a large number -- in fact, the higher it is, the more// likely we are to see a mistake in early watcher triggers get "corrected" by a later one@@ -221,7 +221,7 @@ public class TestStressLiveNodes extends SolrCloudTestCase {private boolean running = false;;private int numAdded = 0;- /** ID should ideally be unique amonst any other instances */+ /** ID should ideally be unique amongst any other instances */public LiveNodeTrasher(String id, int numNodesToAdd) {this.id = id;this.numNodesToAdd = numNodesToAdd;diff --git a/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorCloud.java b/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorCloud.javaindex ca15a6990eb..b59924442aa 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorCloud.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorCloud.java@@ -263,17 +263,17 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {assertEquals("not the expected DBQ failure: " + e.getMessage(), 400, e.code());}- // verify oportunistic concurrency deletions fail as we expect when docs are / aren't present+ // verify opportunistic concurrency deletions fail as we expect when docs are / aren't presentfor (UpdateRequest r : new UpdateRequest[] {update(params("commit", "true")).deleteById(S_ONE_PRE + "1", -1L),update(params("commit", "true")).deleteById(S_TWO_PRE + "2", -1L),update(params("commit", "true")).deleteById("id_not_exists", 1L) }) {try {UpdateResponse rsp = r.process(c);- fail("sanity check for oportunistic concurrency delete didn't fail: "+ fail("sanity check for opportunistic concurrency delete didn't fail: "+ r.toString() + " => " + rsp.toString());} catch (SolrException e) {- assertEquals("not the expected oportunistic concurrency failure code: "+ assertEquals("not the expected opportunistic concurrency failure code: "+ r.toString() + " => " + e.getMessage(), 409, e.code());}}@@ -316,29 +316,29 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {doc(f("id", docId2), f("foo_i", "1976"))).process(client);assertEquals(0, rsp.getStatus());- // attempt to delete individual doc id(s) that should fail because of oportunistic concurrency constraints+ // attempt to delete individual doc id(s) that should fail because of opportunistic concurrency constraintsfor (String id : new String[] { docId1, docId2 }) {rsp = update(params("update.chain", "tolerant-chain-max-errors-10","commit", "true")).deleteById(id, -1L).process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delId="+id, rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delId="+id, rsp,delIErr(id));}- // multiple failed deletes from the same shard (via oportunistic concurrent w/ bogus ids)+ // multiple failed deletes from the same shard (via opportunistic concurrent w/ bogus ids)rsp = update(params("update.chain", "tolerant-chain-max-errors-10","commit", "true")).deleteById(S_ONE_PRE + "X", +1L).deleteById(S_ONE_PRE + "Y", +1L).process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by id for 2 bogus docs", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by id for 2 bogus docs", rsp,delIErr(S_ONE_PRE + "X"), delIErr(S_ONE_PRE + "Y"));assertQueryDocIds(client, true, docId1, docId2);- // multiple failed deletes from the diff shards due to oportunistic concurrency constraints+ // multiple failed deletes from the diff shards due to opportunistic concurrency constraintsrsp = update(params("update.chain", "tolerant-chain-max-errors-10","commit", "true")).deleteById(docId2, -1L).deleteById(docId1, -1L).process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by id for 2 docs", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by id for 2 docs", rsp,delIErr(docId1), delIErr(docId2));assertQueryDocIds(client, true, docId1, docId2);@@ -346,7 +346,7 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {rsp = update(params("update.chain", "tolerant-chain-max-errors-10","commit", "true")).deleteByQuery("bogus_field:foo").process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by query", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by query", rsp,delQErr("bogus_field:foo"));assertQueryDocIds(client, true, docId1, docId2);@@ -355,7 +355,7 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {"commit", "true")).deleteByQuery("bogus_field:foo").deleteByQuery("foo_i:23").process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by query", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by query", rsp,delQErr("bogus_field:foo"));assertQueryDocIds(client, true, docId1, docId2);@@ -364,7 +364,7 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {"commit", "true")).deleteById(docId1, -1L).deleteById("bogus", -1L).process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by id: exists", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by id: exists", rsp,delIErr(docId1));assertQueryDocIds(client, true, docId1, docId2);@@ -373,7 +373,7 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {"commit", "true")).deleteById(docId1, +1L).deleteById("bogusId", +1L).process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by id: bogus", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by id: bogus", rsp,delIErr("bogusId"));assertQueryDocIds(client, false, docId1);assertQueryDocIds(client, true, docId2);@@ -384,7 +384,7 @@ public class TestTolerantUpdateProcessorCloud extends SolrCloudTestCase {"commit", "true")).deleteByQuery("bogus_field:foo").deleteByQuery("foo_i:1976").process(client);assertEquals(0, rsp.getStatus());- assertUpdateTolerantErrors("failed oportunistic concurrent delete by query", rsp,+ assertUpdateTolerantErrors("failed opportunistic concurrent delete by query", rsp,delQErr("bogus_field:foo"));assertQueryDocIds(client, false, docId2);diff --git a/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java b/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.javaindex 81d88815bbd..89f8aebc9f7 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java@@ -278,10 +278,10 @@ public class TestTolerantUpdateProcessorRandomCloud extends SolrCloudTestCase {Thread.sleep(200);}- // check the index contents against our expecationts+ // check the index contents against our expectationsfinal BitSet actualDocIds = allDocs(CLOUD_CLIENT, maxDocId);if ( expectedDocIds.cardinality() != actualDocIds.cardinality() ) {- log.error("cardinality missmatch: expected {} BUT actual {}",+ log.error("cardinality mismatch: expected {} BUT actual {}",expectedDocIds.cardinality(),actualDocIds.cardinality());}@@ -325,7 +325,7 @@ public class TestTolerantUpdateProcessorRandomCloud extends SolrCloudTestCase {assertEquals("wrong nextBit at end of all iters", -1,randomUnsetBit(random(), bits, max));- assertEquals("wrong nextBit at redundent end of all iters", -1,+ assertEquals("wrong nextBit at redundant end of all iters", -1,randomUnsetBit(random(), bits, max));}diff --git a/solr/core/src/test/org/apache/solr/cloud/overseer/ZkStateWriterTest.java b/solr/core/src/test/org/apache/solr/cloud/overseer/ZkStateWriterTest.javaindex f5648bf148c..deca8b02f5a 100644--- a/solr/core/src/test/org/apache/solr/cloud/overseer/ZkStateWriterTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/overseer/ZkStateWriterTest.java@@ -260,14 +260,14 @@ public class ZkStateWriterTest extends SolrTestCaseJ4 {try {writer.enqueueUpdate(reader.getClusterState(), c2, null);- fail("enqueueUpdate after BadVersionException should not have suceeded");+ fail("enqueueUpdate after BadVersionException should not have succeeded");} catch (IllegalStateException e) {// expected}try {writer.writePendingUpdates();- fail("writePendingUpdates after BadVersionException should not have suceeded");+ fail("writePendingUpdates after BadVersionException should not have succeeded");} catch (IllegalStateException e) {// expected}@@ -344,14 +344,14 @@ public class ZkStateWriterTest extends SolrTestCaseJ4 {try {writer.enqueueUpdate(reader.getClusterState(), c2, null);- fail("enqueueUpdate after BadVersionException should not have suceeded");+ fail("enqueueUpdate after BadVersionException should not have succeeded");} catch (IllegalStateException e) {// expected}try {writer.writePendingUpdates();- fail("writePendingUpdates after BadVersionException should not have suceeded");+ fail("writePendingUpdates after BadVersionException should not have succeeded");} catch (IllegalStateException e) {// expected}diff --git a/solr/core/src/test/org/apache/solr/core/CountUsageValueSourceParser.java b/solr/core/src/test/org/apache/solr/core/CountUsageValueSourceParser.javaindex c7c1a50926e..e6380393e57 100644--- a/solr/core/src/test/org/apache/solr/core/CountUsageValueSourceParser.java+++ b/solr/core/src/test/org/apache/solr/core/CountUsageValueSourceParser.java@@ -32,7 +32,7 @@ import java.util.concurrent.atomic.AtomicInteger;/*** A Mock ValueSource parser that produces ValueSources that returns a constant- * value butalso keeps track of how many times it was asked for a value for any+ * value but also keeps track of how many times it was asked for a value for any* document via a static map and a user defined key.**/public class CountUsageValueSourceParser extends ValueSourceParser {diff --git a/solr/core/src/test/org/apache/solr/core/ExitableDirectoryReaderTest.java b/solr/core/src/test/org/apache/solr/core/ExitableDirectoryReaderTest.javaindex 5223c9f8437..5f0d537a7e2 100644--- a/solr/core/src/test/org/apache/solr/core/ExitableDirectoryReaderTest.java+++ b/solr/core/src/test/org/apache/solr/core/ExitableDirectoryReaderTest.java@@ -82,7 +82,7 @@ public class ExitableDirectoryReaderTest extends SolrTestCaseJ4 {// There are lots of assumptions about how/when cache entries should be changed in this method. The// simple case above shows the root problem without the confusion. testFilterSimpleCase should be- // removed once it is running and this test should be un-ignored and the assumptiions verified.+ // removed once it is running and this test should be un-ignored and the assumptions verified.// With all the weirdness, I'm not going to vouch for this test. Feel free to change it.@Testpublic void testCacheAssumptions() throws Exception {diff --git a/solr/core/src/test/org/apache/solr/core/QueryResultKeyTest.java b/solr/core/src/test/org/apache/solr/core/QueryResultKeyTest.javaindex f89e1b185dd..ef4facfa995 100644--- a/solr/core/src/test/org/apache/solr/core/QueryResultKeyTest.java+++ b/solr/core/src/test/org/apache/solr/core/QueryResultKeyTest.java@@ -159,9 +159,9 @@ public class QueryResultKeyTest extends SolrTestCaseJ4 {/*** returns a "small" list of "small" random numbers. The idea behind this method is* that multiple calls have a decent change of returning two arrays which are the- * same size and contain the same numbers but in a differnet order.+ * same size and contain the same numbers but in a differed order.*- * the array is garunteed to always have at least 1 element+ * the array is guaranteed to always have at least 1 element*/private int[] smallArrayOfRandomNumbers() {int size = TestUtil.nextInt(random(), 1, 5);diff --git a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java b/solr/core/src/test/org/apache/solr/core/TestLazyCores.javaindex 8ee4ec5763f..c239b44e772 100644--- a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java+++ b/solr/core/src/test/org/apache/solr/core/TestLazyCores.java@@ -425,7 +425,7 @@ public class TestLazyCores extends SolrTestCaseJ4 {};// with SOLR-6279 UNLOAD will wait for the core's reference count to have reached zero- // hence cN.close() need to preceed or run in parallel with unloadViaAdmin(...)+ // hence cN.close() need to proceed or run in parallel with unloadViaAdmin(...)final TestThread cThread = new TestThread();cThread.start();diff --git a/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java b/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.javaindex ffc521183dd..fd13a8e8cc4 100644--- a/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java+++ b/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java@@ -114,7 +114,7 @@ public class TestMergePolicyConfig extends SolrTestCaseJ4 {assertCommitSomeNewDocs();// even though we have a single segment (which is 100% of the size of- // the index which is higher then our 0.6D threashold) the+ // the index which is higher then our 0.6D threshold) the// compound ratio doesn't matter because the segment was never mergedassertCompoundSegments(h.getCore(), expectCFS);diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotLargeTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotLargeTest.javaindex 0fa4e8c2e2f..0c5e128ba8a 100644--- a/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotLargeTest.java+++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotLargeTest.java@@ -180,7 +180,7 @@ public class DistributedFacetPivotLargeTest extends BaseDistributedSearchTestCas// ... but there's no refinement since mincount==0// - would it even matter//- // should we remove the refinement short circut?+ // should we remove the refinement short circuit?//// rsp = query( params( "q", "*:*",// "rows", "0",diff --git a/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java b/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.javaindex 212ab105559..5e1b13f55a0 100644--- a/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java+++ b/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java@@ -61,7 +61,7 @@ public class TestCustomDocTransformer extends SolrTestCaseJ4 {assertQ( req("q", "*:*","fl", "id,out:[custom extra=subject,title]"),- // Check that the concatinated fields make it in the results+ // Check that the concatenated fields make it in the results"//*[@numFound='" + max + "']","//str[.='xx#title_0#']","//str[.='xx#title_1#']",@@ -102,7 +102,7 @@ public class TestCustomDocTransformer extends SolrTestCaseJ4 {}/**- * This transformer simply concatinates the values of multipe fields+ * This transformer simply concatenates the values of multiple fields*/@Overridepublic void transform(SolrDocument doc, int docid, float score) throws IOException {diff --git a/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.java b/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.javaindex 89a96bf14a5..bf1d8f655ed 100644--- a/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.java+++ b/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.java@@ -171,7 +171,7 @@ public class TestRawResponseWriter extends SolrTestCaseJ4 {writerBinBase.write(bytes, req(), rsp);BinaryResponseParser parser = new BinaryResponseParser();NamedList<Object> out = parser.processResponse- (new ByteArrayInputStream(bytes.toByteArray()), /* encoding irelevent */ null);+ (new ByteArrayInputStream(bytes.toByteArray()), /* encoding irrelevant */ null);assertEquals(RawResponseWriter.CONTENT, out.getName(0));assertEquals("test", out.getVal(0));assertEquals("foo", out.getName(1));@@ -180,8 +180,8 @@ public class TestRawResponseWriter extends SolrTestCaseJ4 {}/**- * Generates a new {@link RawResponseWriter} wraping the specified baseWriter name- * (which much either be an implicitly definied response writer, or one explicitly+ * Generates a new {@link RawResponseWriter} wrapping the specified baseWriter name+ * (which much either be an implicitly defined response writer, or one explicitly* configured in solrconfig.xml)** @param baseWriter null or the name of a valid base writerdiff --git a/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java b/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.javaindex c0907af7ce5..e633a1358ec 100644--- a/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java+++ b/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java@@ -309,7 +309,7 @@ public abstract class AbstractCurrencyFieldTest extends SolrTestCaseJ4 {assertU(commit());- // direct value source usage, gets "raw" form od default curency+ // direct value source usage, gets "raw" form od default currency// default==USD, so raw==peniesassertQ(req("fl", "id,func:field($f)","f", field(),diff --git a/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java b/solr/core/src/test/org/apache/solr/schema/DocValuesTest.javaindex 6411a834b35..b4248da4b1d 100644--- a/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java+++ b/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java@@ -105,7 +105,7 @@ public class DocValuesTest extends SolrTestCaseJ4 {assertEquals(4L, values.longVal(0));assertEquals(4L, values.objectVal(0));- // check reversability of created fields+ // check reversibility of created fieldststToObj(schema.getField("floatdv"), -1.5f);tstToObj(schema.getField("floatdvs"), -1.5f);tstToObj(schema.getField("doubledv"), -1.5d);diff --git a/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.java b/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.javaindex d7b39a17cd2..82f8f6cad85 100644--- a/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.java+++ b/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.java@@ -29,7 +29,7 @@ import org.apache.solr.search.QParser;/*** Custom field that overrides the PrefixQuery behaviour to map queries such that:* (foo* becomes bar*) and (bar* becomes foo*).- * This is used for testing overridded prefix query for custom fields in TestOverriddenPrefixQueryForCustomFieldType+ * This is used for testing overridden prefix query for custom fields in TestOverriddenPrefixQueryForCustomFieldType*/public class MyCrazyCustomField extends TextField {diff --git a/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.java b/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.javaindex 66280972545..a58c2682158 100644--- a/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.java+++ b/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.java@@ -21,7 +21,7 @@ import org.apache.solr.search.QParser;/*** Custom field type that overrides the prefix query behavior to map "X*" to [X TO Integer.MAX_VALUE].- * * This is used for testing overridded prefix query for custom fields in TestOverriddenPrefixQueryForCustomFieldType+ * * This is used for testing overridden prefix query for custom fields in TestOverriddenPrefixQueryForCustomFieldType*/public class TrieIntPrefixActsAsRangeQueryFieldType extends TrieIntField {diff --git a/solr/core/src/test/org/apache/solr/search/TestMissingGroups.java b/solr/core/src/test/org/apache/solr/search/TestMissingGroups.javaindex caecb471018..808c21cff7a 100644--- a/solr/core/src/test/org/apache/solr/search/TestMissingGroups.java+++ b/solr/core/src/test/org/apache/solr/search/TestMissingGroups.java@@ -85,7 +85,7 @@ public class TestMissingGroups extends SolrTestCaseJ4 {assertU(commit()); // mess with the segment counts}}- // doc#0: at least one doc that is garunteed not special and has no chance of being filtered+ // doc#0: at least one doc that is guaranteed not special and has no chance of being filteredassertU(adoc(sdoc("id","0")));assertU(commit());diff --git a/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.java b/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.javaindex 2ba79e0ab6c..0edbaaa9426 100644--- a/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.java+++ b/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.java@@ -178,11 +178,11 @@ public class TestRandomCollapseQParserPlugin extends SolrTestCaseJ4 {NULL_IGNORE.equals(nullPolicy));}- // work arround for SOLR-8082...+ // workaround for SOLR-8082...//// what's important is that we already did the collapsing on the *real* collapseField// to verify the groupHead returned is really the best our verification filter- // on docs with that value in a differnet ifeld containing the exact same values+ // on docs with that value in a different field containing the exact same valuesfinal String checkField = collapseField.replace("float_dv", "float");final String checkFQ = ((null == collapseVal)diff --git a/solr/core/src/test/org/apache/solr/search/TestRecovery.java b/solr/core/src/test/org/apache/solr/search/TestRecovery.javaindex 6439498dfeb..12d3ec33b9a 100644--- a/solr/core/src/test/org/apache/solr/search/TestRecovery.java+++ b/solr/core/src/test/org/apache/solr/search/TestRecovery.java@@ -580,7 +580,7 @@ public class TestRecovery extends SolrTestCaseJ4 {version = addAndGetVersion(sdoc("id","reload1", "_version_", Long.toString(version)), null);// a deleteByQuery currently forces open a new realtime reader via the update log.- // This also tests that the update log was informed of the new udpate handler.+ // This also tests that the update log was informed of the new update handler.deleteByQueryAndGetVersion("foo_t:hownowbrowncow", null);diff --git a/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.java b/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.javaindex b79caa6aa5e..ee17137cb1d 100644--- a/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.java+++ b/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.java@@ -187,10 +187,10 @@ public class TestReloadDeadlock extends TestRTGBase {thread.join(10000); // Normally they'll all return immediately (or close to that).}} catch (InterruptedException ie) {- fail("Sholdn't have sat around here this long waiting for the threads to join.");+ fail("Shouldn't have sat around here this long waiting for the threads to join.");}for (Thread thread : threads) { // Probably a silly test, but what the heck.- assertFalse("All threads shoul be dead, but at least thread " + thread.getName() + " is not", thread.isAlive());+ assertFalse("All threads should be dead, but at least thread " + thread.getName() + " is not", thread.isAlive());}}diff --git a/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.java b/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.javaindex c11153b081d..1dfe1d79cee 100644--- a/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.java+++ b/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.java@@ -127,7 +127,7 @@ public class TestSearcherReuse extends SolrTestCaseJ4 {baseReq.close();}- // now do a variety of things that *should* always garuntee a new searcher+ // now do a variety of things that *should* always guarantee a new searcherSolrQueryRequest beforeReq;beforeReq = req("q","foo");diff --git a/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.java b/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.javaindex c97f7a68001..7a7dc6b3343 100644--- a/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.java+++ b/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.java@@ -25,7 +25,7 @@ import org.junit.Before;import org.junit.BeforeClass;import org.junit.Test;-//Unlike TestSolr4Spatial, not parameterized / not generic.+//Unlike TestSolr4Spatial, not parametrized / not generic.public class TestSolr4Spatial2 extends SolrTestCaseJ4 {@BeforeClassdiff --git a/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.java b/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.javaindex 9c458e282df..17b33db9ad9 100644--- a/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.java+++ b/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.java@@ -26,7 +26,7 @@ import org.apache.solr.search.ValueSourceParser;/*** A sample ValueSourceParser for testing. Approximates the oracle NVL function,- * letting you substitude a value when a "null" is encountered. In this case,+ * letting you substitute a value when a "null" is encountered. In this case,* null is approximated by a float value, since ValueSource always returns a* float, even if the field is undefined for a document.*diff --git a/solr/core/src/test/org/apache/solr/search/function/TestFunctionQuery.java b/solr/core/src/test/org/apache/solr/search/function/TestFunctionQuery.javaindex cc9dcceffd1..7582801e1d3 100644--- a/solr/core/src/test/org/apache/solr/search/function/TestFunctionQuery.java+++ b/solr/core/src/test/org/apache/solr/search/function/TestFunctionQuery.java@@ -86,7 +86,7 @@ public class TestFunctionQuery extends SolrTestCaseJ4 {assertU(commit());}- // replace \0 with the field name and create a parseable string+ // replace \0 with the field name and create a parsable stringpublic String func(String field, String template) {StringBuilder sb = new StringBuilder("{!func}");for (char ch : template.toCharArray()) {diff --git a/solr/core/src/test/org/apache/solr/search/function/TestOrdValues.java b/solr/core/src/test/org/apache/solr/search/function/TestOrdValues.javaindex 4b3ee1a67ed..785ee55883a 100644--- a/solr/core/src/test/org/apache/solr/search/function/TestOrdValues.java+++ b/solr/core/src/test/org/apache/solr/search/function/TestOrdValues.java@@ -153,11 +153,11 @@ public class TestOrdValues extends LuceneTestCase {log("-------- " + i + ". Explain doc " + id);log(s.explain(q, sd[i].doc));float expectedScore = N_DOCS - i - 1;- assertEquals("score of result " + i + " shuould be " + expectedScore + " != " + score, expectedScore, score, TEST_SCORE_TOLERANCE_DELTA);+ assertEquals("score of result " + i + " should be " + expectedScore + " != " + score, expectedScore, score, TEST_SCORE_TOLERANCE_DELTA);String expectedId = inOrder? id2String(N_DOCS - i) // in-order ==> larger values first: id2String(i + 1); // reverse ==> smaller values first- assertTrue("id of result " + i + " shuould be " + expectedId + " != " + score, expectedId.equals(id));+ assertTrue("id of result " + i + " should be " + expectedId + " != " + score, expectedId.equals(id));}r.close();}diff --git a/solr/core/src/test/org/apache/solr/search/similarities/TestDFRSimilarityFactory.java b/solr/core/src/test/org/apache/solr/search/similarities/TestDFRSimilarityFactory.javaindex 86659616c5b..2159f1abf6a 100644--- a/solr/core/src/test/org/apache/solr/search/similarities/TestDFRSimilarityFactory.java+++ b/solr/core/src/test/org/apache/solr/search/similarities/TestDFRSimilarityFactory.java@@ -45,7 +45,7 @@ public class TestDFRSimilarityFactory extends BaseSimilarityTestCase {assertEquals(NormalizationH2.class, dfr.getNormalization().getClass());}- /** dfr with parameterized normalization */+ /** dfr with parametrized normalization */public void testParameters() throws Exception {Similarity sim = getSimilarity("text_params");assertEquals(DFRSimilarity.class, sim.getClass());diff --git a/solr/core/src/test/org/apache/solr/search/similarities/TestIBSimilarityFactory.java b/solr/core/src/test/org/apache/solr/search/similarities/TestIBSimilarityFactory.javaindex 8e881cba5c7..06e143d2fc0 100644--- a/solr/core/src/test/org/apache/solr/search/similarities/TestIBSimilarityFactory.java+++ b/solr/core/src/test/org/apache/solr/search/similarities/TestIBSimilarityFactory.java@@ -45,7 +45,7 @@ public class TestIBSimilarityFactory extends BaseSimilarityTestCase {assertEquals(NormalizationH2.class, ib.getNormalization().getClass());}- /** ll/ttf/h3 with parameterized normalization */+ /** ll/ttf/h3 with parametrized normalization */public void testParameters() throws Exception {Similarity sim = getSimilarity("text_params");assertEquals(IBSimilarity.class, sim.getClass());diff --git a/solr/core/src/test/org/apache/solr/search/similarities/TestNonDefinedSimilarityFactory.java b/solr/core/src/test/org/apache/solr/search/similarities/TestNonDefinedSimilarityFactory.javaindex 355e77688bf..0dda8916e6c 100644--- a/solr/core/src/test/org/apache/solr/search/similarities/TestNonDefinedSimilarityFactory.java+++ b/solr/core/src/test/org/apache/solr/search/similarities/TestNonDefinedSimilarityFactory.java@@ -23,7 +23,7 @@ import org.junit.After;/*** Verifies that the default behavior of the implicit {@link ClassicSimilarityFactory}- * (ie: no similarity configured in schema.xml at all) is consistnent with+ * (ie: no similarity configured in schema.xml at all) is consistent with* expectations based on the luceneMatchVersion* @see <a href="https://issues.apache.org/jira/browse/SOLR-5561">SOLR-5561</a>* @see <a href="https://issues.apache.org/jira/browse/SOLR-8057">SOLR-8057</a>diff --git a/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java b/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.javaindex 0daf2414c89..4106884a8e2 100644--- a/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java+++ b/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java@@ -125,11 +125,11 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {monitor.assertSaneOffers();final long soft529Ms = TimeUnit.MILLISECONDS.convert(soft529 - add529, TimeUnit.NANOSECONDS);- assertTrue("soft529 occured too fast, in " ++ assertTrue("soft529 occurred too fast, in " +soft529Ms + "ms, less than soft commit interval " + softCommitWaitMillis,soft529Ms >= softCommitWaitMillis);final long hard529Ms = TimeUnit.MILLISECONDS.convert(hard529 - add529, TimeUnit.NANOSECONDS);- assertTrue("hard529 occured too fast, in " ++ assertTrue("hard529 occurred too fast, in " +hard529Ms + "ms, less than hard commit interval " + hardCommitWaitMillis,hard529Ms >= hardCommitWaitMillis);@@ -180,7 +180,7 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {monitor.assertSaneOffers();- // wait a bit, w/o other action we definitley shouldn't see any+ // wait a bit, w/o other action we definitely shouldn't see any// new hard/soft commitsassertNull("Got a hard commit we weren't expecting",monitor.hard.poll(2, SECONDS));@@ -256,11 +256,11 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {monitor.assertSaneOffers();final long soft529Ms = TimeUnit.MILLISECONDS.convert(soft529 - del529, TimeUnit.NANOSECONDS);- assertTrue("soft529 occured too fast, in " + soft529Ms ++ assertTrue("soft529 occurred too fast, in " + soft529Ms +"ms, less than soft commit interval " + softCommitWaitMillis,soft529Ms >= softCommitWaitMillis);final long hard529Ms = TimeUnit.MILLISECONDS.convert(hard529 - del529, TimeUnit.NANOSECONDS);- assertTrue("hard529 occured too fast, in " ++ assertTrue("hard529 occurred too fast, in " +hard529Ms + "ms, less than hard commit interval " + hardCommitWaitMillis,hard529Ms >= hardCommitWaitMillis);@@ -276,7 +276,7 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {searcher529 + " !<= " + hard529,searcher529 <= hard529);- // clear commmits+ // clear commitsmonitor.hard.clear();monitor.soft.clear();@@ -325,7 +325,7 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {// have to assume none of the docs were added until// very end of the add windowlong softMs = TimeUnit.MILLISECONDS.convert(soft - fast5end, TimeUnit.NANOSECONDS);- assertTrue(i + ": soft occured too fast: " ++ assertTrue(i + ": soft occurred too fast: " +softMs + " < (" + softCommitWaitMillis + " * " + i + ")",softMs >= (softCommitWaitMillis * i));}@@ -341,7 +341,7 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {// have to assume none of the docs were added until// very end of the add windowlong hardMs = TimeUnit.MILLISECONDS.convert(hard - fast5end, TimeUnit.NANOSECONDS);- assertTrue(i + ": hard occured too fast: " ++ assertTrue(i + ": hard occurred too fast: " +hardMs + " < (" + hardCommitWaitMillis + " * " + i + ")",hardMs >= (hardCommitWaitMillis * i));}diff --git a/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java b/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.javaindex 5c5c7031791..10a07d96122 100644--- a/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java+++ b/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java@@ -46,7 +46,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {public void testSimpleUpdates() throws Exception {- // skip low version against commited data+ // skip low version against committed dataassertU(adoc("id", "aaa", "name", "a1", "my_version_l", "1001"));assertU(commit());assertU(adoc("id", "aaa", "name", "a2", "my_version_l", "1002"));@@ -61,7 +61,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {assertJQ(req("qt","/get", "id","aaa", "fl","name"), "=={'doc':{'name':'a2'}}");- // skip low version against uncommited data from updateLog+ // skip low version against uncommitted data from updateLogassertU(adoc("id", "aaa", "name", "a3", "my_version_l", "1003"));assertU(adoc("id", "aaa", "name", "XX", "my_version_l", "7"));assertJQ(req("qt","/get", "id","aaa", "fl","name")@@ -97,7 +97,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {public void testSimpleDeletes() throws Exception {- // skip low version delete against commited doc+ // skip low version delete against committed docassertU(adoc("id", "aaa", "name", "a1", "my_version_l", "1001"));assertU(commit());assertU(adoc("id", "aaa", "name", "a2", "my_version_l", "1002"));@@ -112,7 +112,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {assertJQ(req("qt","/get", "id","aaa", "fl","name"), "=={'doc':{'name':'a2'}}");- // skip low version delete against uncommited doc from updateLog+ // skip low version delete against uncommitted doc from updateLogassertU(adoc("id", "aaa", "name", "a3", "my_version_l", "1003"));deleteAndGetVersion("aaa",params("del_version", "8"));@@ -124,7 +124,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {assertJQ(req("qt","/get", "id","aaa", "fl","name"), "=={'doc':{'name':'a3'}}");- // skip low version add against uncommited "delete" from updateLog+ // skip low version add against uncommitted "delete" from updateLogdeleteAndGetVersion("aaa", params("del_version", "1010"));assertU(adoc("id", "aaa", "name", "XX", "my_version_l", "22"));assertJQ(req("qt","/get", "id","aaa", "fl","my_version_l")@@ -153,7 +153,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {*/public void testFloatVersionField() throws Exception {- // skip low version add & low version delete against commited doc+ // skip low version add & low version delete against committed docupdateJ(jsonAdd(sdoc("id", "aaa", "name", "a1", "my_version_f", "10.01")),params("update.chain","external-version-float"));assertU(commit());@@ -168,7 +168,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {, "=={'doc':{'name':'a1'}}");assertU(commit());- // skip low version delete against uncommited doc from updateLog+ // skip low version delete against uncommitted doc from updateLogupdateJ(jsonAdd(sdoc("id", "aaa", "name", "a2", "my_version_f", "10.02")),params("update.chain","external-version-float"));deleteAndGetVersion("aaa", params("del_version", "8",@@ -181,7 +181,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {assertJQ(req("qt","/get", "id","aaa", "fl","name"), "=={'doc':{'name':'a2'}}");- // skip low version add against uncommited "delete" from updateLog+ // skip low version add against uncommitted "delete" from updateLogdeleteAndGetVersion("aaa", params("del_version", "10.10","update.chain","external-version-float"));updateJ(jsonAdd(sdoc("id", "aaa", "name", "XX", "my_version_f", "10.05")),@@ -209,7 +209,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {public void testFailOnOldVersion() throws Exception {- // fail low version add & low version delete against commited doc+ // fail low version add & low version delete against committed docupdateJ(jsonAdd(sdoc("id", "aaa", "name", "a1", "my_version_l", "1001")),params("update.chain","external-version-failhard"));assertU(commit());@@ -234,7 +234,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {, "=={'doc':{'name':'a1'}}");assertU(commit());- // fail low version delete against uncommited doc from updateLog+ // fail low version delete against uncommitted doc from updateLogupdateJ(jsonAdd(sdoc("id", "aaa", "name", "a2", "my_version_l", "1002")),params("update.chain","external-version-failhard"));try {@@ -252,7 +252,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {assertJQ(req("qt","/get", "id","aaa", "fl","name"), "=={'doc':{'name':'a2'}}");- // fail low version add against uncommited "delete" from updateLog+ // fail low version add against uncommitted "delete" from updateLogdeleteAndGetVersion("aaa", params("del_version", "1010","update.chain","external-version-failhard"));try {diff --git a/solr/core/src/test/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactoryTest.java b/solr/core/src/test/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactoryTest.javaindex 5f9005b0f90..c01c319dc8a 100644--- a/solr/core/src/test/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactoryTest.java+++ b/solr/core/src/test/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactoryTest.java@@ -155,7 +155,7 @@ public class CloneFieldUpdateProcessorFactoryTest extends UpdateProcessorTestBasSolrInputDocument d;- // regardless of chain, all of these checks should be equivilent+ // regardless of chain, all of these checks should be equivalentfor (String chain : Arrays.asList("clone-single", "clone-single-regex","clone-multi", "clone-multi-regex","clone-array", "clone-array-regex",@@ -191,7 +191,7 @@ public class CloneFieldUpdateProcessorFactoryTest extends UpdateProcessorTestBas2.3f, d.getField("dest_s").getBoost(), 0.0f);}- // should be equivilent for any chain matching source1_s and source2_s (but not source0_s)+ // should be equivalent for any chain matching source1_s and source2_s (but not source0_s)for (String chain : Arrays.asList("clone-multi", "clone-multi-regex","clone-array", "clone-array-regex","clone-selector", "clone-selector-regex")) {@@ -236,7 +236,7 @@ public class CloneFieldUpdateProcessorFactoryTest extends UpdateProcessorTestBas2.3f, d.getField("dest_s").getBoost(), 0.0f);}- // any chain that copies source1_s to dest_s should be equivilent for these assertions+ // any chain that copies source1_s to dest_s should be equivalent for these assertionsfor (String chain : Arrays.asList("clone-simple-regex-syntax","clone-single", "clone-single-regex","clone-multi", "clone-multi-regex",diff --git a/solr/core/src/test/org/apache/solr/update/processor/RecordingUpdateProcessorFactory.java b/solr/core/src/test/org/apache/solr/update/processor/RecordingUpdateProcessorFactory.javaindex ea44046ac93..48d0596121b 100644--- a/solr/core/src/test/org/apache/solr/update/processor/RecordingUpdateProcessorFactory.java+++ b/solr/core/src/test/org/apache/solr/update/processor/RecordingUpdateProcessorFactory.java@@ -34,8 +34,8 @@ import java.util.concurrent.BlockingQueue;import java.util.concurrent.LinkedBlockingQueue;/**- * This Factory can optionally save refrences to the commands it receives in- * BlockingQueues that tests can poll from to observe that the exepected commands+ * This Factory can optionally save references to the commands it receives in+ * BlockingQueues that tests can poll from to observe that the expected commands* are executed. By default, this factory does nothing except return the "next"* processor from the chain unless it's told to {@link #startRecording()}*/diff --git a/solr/core/src/test/org/apache/solr/update/processor/ScriptEngineTest.java b/solr/core/src/test/org/apache/solr/update/processor/ScriptEngineTest.javaindex 538d7cf4009..6bf20cec19b 100644--- a/solr/core/src/test/org/apache/solr/update/processor/ScriptEngineTest.java+++ b/solr/core/src/test/org/apache/solr/update/processor/ScriptEngineTest.java@@ -30,7 +30,7 @@ import org.junit.BeforeClass;/*** Sanity tests basic functionality of {@link ScriptEngineManager} and- * {@link ScriptEngine} w/o excercising any Lucene specific code.+ * {@link ScriptEngine} w/o exercising any Lucene specific code.*/public class ScriptEngineTest extends LuceneTestCase {diff --git a/solr/core/src/test/org/apache/solr/update/processor/UpdateRequestProcessorFactoryTest.java b/solr/core/src/test/org/apache/solr/update/processor/UpdateRequestProcessorFactoryTest.javaindex 8325cc0dc73..e9dc93f282e 100644--- a/solr/core/src/test/org/apache/solr/update/processor/UpdateRequestProcessorFactoryTest.java+++ b/solr/core/src/test/org/apache/solr/update/processor/UpdateRequestProcessorFactoryTest.java@@ -77,7 +77,7 @@ public class UpdateRequestProcessorFactoryTest extends AbstractSolrTestCase {public void testUpdateDistribChainSkipping() throws Exception {// a key part of this test is verifying that LogUpdateProcessor is found in all chains because it- // is a @RunAllways processor -- but in order for that to work, we have to sanity check that the log+ // is a @RunAlways processor -- but in order for that to work, we have to sanity check that the log// level is at least "INFO" otherwise the factory won't even produce a processor and all our assertions// are for nought. (see LogUpdateProcessorFactory.getInstance)//diff --git a/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java b/solr/core/src/test/org/apache/solr/util/DateMathParserTest.javaindex 726c71c9617..8840d34b354 100644--- a/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java+++ b/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java@@ -38,11 +38,11 @@ public class DateMathParserTest extends LuceneTestCase {/*** A formatter for specifying every last nuance of a Date for easy- * refernece in assertion statements+ * reference in assertion statements*/private DateFormat fmt;/**- * A parser for reading in explicit dates that are convinient to type+ * A parser for reading in explicit dates that are convenient to type* in a test*/private DateFormat parser;