You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2016/06/18 01:43:09 UTC
[3/5] lucene-solr:branch_5x: SOLR-9105: Fix some typos in solr core
module (cherry picked from commit 1609406)
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/core/TestLazyCores.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java b/solr/core/src/test/org/apache/solr/core/TestLazyCores.java
index 8ee4ec5..c239b44 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();
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java b/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java
index ffc5211..fd13a8e 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 merged
assertCompoundSegments(h.getCore(), expectCFS);
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotLargeTest.java
----------------------------------------------------------------------
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.java
index 176b57f..17af66b 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",
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java b/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java
index 754cf55..5b8c7f0 100644
--- a/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java
+++ b/solr/core/src/test/org/apache/solr/response/TestCustomDocTransformer.java
@@ -62,7 +62,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#']",
@@ -103,7 +103,7 @@ public class TestCustomDocTransformer extends SolrTestCaseJ4 {
}
/**
- * This transformer simply concatinates the values of multipe fields
+ * This transformer simply concatenates the values of multiple fields
*/
@Override
public void transform(SolrDocument doc, int docid) throws IOException {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.java b/solr/core/src/test/org/apache/solr/response/TestRawResponseWriter.java
index 89a96bf..bf1d8f6 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 writer
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java b/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java
index ef64d54..6b98a12 100644
--- a/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java
+++ b/solr/core/src/test/org/apache/solr/schema/AbstractCurrencyFieldTest.java
@@ -310,7 +310,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==penies
assertQ(req("fl", "id,func:field($f)",
"f", field(),
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java b/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java
index dfe5458..d6175c0 100644
--- a/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java
+++ b/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java
@@ -104,7 +104,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 fields
tstToObj(schema.getField("floatdv"), -1.5f);
tstToObj(schema.getField("floatdvs"), -1.5f);
tstToObj(schema.getField("doubledv"), -1.5d);
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.java b/solr/core/src/test/org/apache/solr/schema/MyCrazyCustomField.java
index 74cd8ee..9fa8581 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 java.io.IOException;
/**
* 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 {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.java b/solr/core/src/test/org/apache/solr/schema/TrieIntPrefixActsAsRangeQueryFieldType.java
index 6628097..a58c268 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 {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/TestMissingGroups.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestMissingGroups.java b/solr/core/src/test/org/apache/solr/search/TestMissingGroups.java
index caecb47..808c21c 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 filtered
assertU(adoc(sdoc("id","0")));
assertU(commit());
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.java b/solr/core/src/test/org/apache/solr/search/TestRandomCollapseQParserPlugin.java
index 2ba79e0..0edbaaa 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 values
final String checkField = collapseField.replace("float_dv", "float");
final String checkFQ = ((null == collapseVal)
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/TestRecovery.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestRecovery.java b/solr/core/src/test/org/apache/solr/search/TestRecovery.java
index 38feeef..849408d 100644
--- a/solr/core/src/test/org/apache/solr/search/TestRecovery.java
+++ b/solr/core/src/test/org/apache/solr/search/TestRecovery.java
@@ -612,7 +612,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);
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.java b/solr/core/src/test/org/apache/solr/search/TestReloadDeadlock.java
index b79caa6..ee17137 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());
}
}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.java b/solr/core/src/test/org/apache/solr/search/TestSearcherReuse.java
index c11153b..1dfe1d7 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 searcher
SolrQueryRequest beforeReq;
beforeReq = req("q","foo");
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.java b/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial2.java
index c97f7a6..7a7dc6b 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 {
@BeforeClass
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.java b/solr/core/src/test/org/apache/solr/search/function/NvlValueSourceParser.java
index 9c458e2..17b33db 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.
*
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/function/TestFunctionQuery.java
----------------------------------------------------------------------
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.java
index 405c8c9..e571de2 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
@@ -85,7 +85,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 string
public String func(String field, String template) {
StringBuilder sb = new StringBuilder("{!func}");
for (char ch : template.toCharArray()) {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/function/TestOrdValues.java
----------------------------------------------------------------------
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.java
index e9c067f..1699773 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();
}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/similarities/TestDFRSimilarityFactory.java
----------------------------------------------------------------------
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.java
index 8665961..2159f1a 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());
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/similarities/TestIBSimilarityFactory.java
----------------------------------------------------------------------
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.java
index 8e881cb..06e143d 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());
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/search/similarities/TestNonDefinedSimilarityFactory.java
----------------------------------------------------------------------
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.java
index 0d41d10..4bb20a2 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
@@ -22,7 +22,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>
*/
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java b/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java
index 0daf241..4106884 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 commits
assertNull("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 commits
monitor.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 window
long 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 window
long 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));
}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java b/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java
index b9edc1d..960bae0 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 data
assertU(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 updateLog
assertU(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 doc
assertU(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 updateLog
assertU(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 updateLog
deleteAndGetVersion("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 doc
updateJ(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 updateLog
updateJ(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 updateLog
deleteAndGetVersion("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 doc
updateJ(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 updateLog
updateJ(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 updateLog
deleteAndGetVersion("aaa", params("del_version", "1010",
"update.chain","external-version-failhard"));
try {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactoryTest.java
----------------------------------------------------------------------
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.java
index 5f9005b..c01c319 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 UpdateProcessorTestBas
SolrInputDocument d;
- // regardless of chain, all of these checks should be equivilent
+ // regardless of chain, all of these checks should be equivalent
for (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 UpdateProcessorTestBas
2.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 UpdateProcessorTestBas
2.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 assertions
for (String chain : Arrays.asList("clone-simple-regex-syntax",
"clone-single", "clone-single-regex",
"clone-multi", "clone-multi-regex",
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/update/processor/RecordingUpdateProcessorFactory.java
----------------------------------------------------------------------
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.java
index ea44046..48d0596 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()}
*/
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/update/processor/ScriptEngineTest.java
----------------------------------------------------------------------
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.java
index 538d7cf..6bf20ce 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 {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/update/processor/UpdateRequestProcessorFactoryTest.java
----------------------------------------------------------------------
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.java
index e5d060e..4ffda7e 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)
//
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b83f82dd/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java b/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java
index c3623e8..a290b9e 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;