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 2014/12/24 06:55:35 UTC
svn commit: r1647736 [3/5] - in /lucene/dev/branches/branch_5x: ./
dev-tools/ dev-tools/scripts/ lucene/ lucene/analysis/
lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/
lucene/analysis/common/src/java/org/apache/lucene/analysis/commong...
Modified: lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/ProductFloatFunction.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/ProductFloatFunction.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/ProductFloatFunction.java (original)
+++ lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/ProductFloatFunction.java Wed Dec 24 05:55:32 2014
@@ -21,7 +21,7 @@ import org.apache.lucene.queries.functio
import org.apache.lucene.queries.function.ValueSource;
/**
- * <code>ProductFloatFunction</code> returns the product of it's components.
+ * <code>ProductFloatFunction</code> returns the product of its components.
*/
public class ProductFloatFunction extends MultiFloatFunction {
public ProductFloatFunction(ValueSource[] sources) {
Modified: lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SumFloatFunction.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SumFloatFunction.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SumFloatFunction.java (original)
+++ lucene/dev/branches/branch_5x/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SumFloatFunction.java Wed Dec 24 05:55:32 2014
@@ -21,7 +21,7 @@ import org.apache.lucene.queries.functio
import org.apache.lucene.queries.function.ValueSource;
/**
- * <code>SumFloatFunction</code> returns the sum of it's components.
+ * <code>SumFloatFunction</code> returns the sum of its components.
*/
public class SumFloatFunction extends MultiFloatFunction {
public SumFloatFunction(ValueSource[] sources) {
Modified: lucene/dev/branches/branch_5x/lucene/queries/src/test/org/apache/lucene/queries/CommonTermsQueryTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queries/src/test/org/apache/lucene/queries/CommonTermsQueryTest.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queries/src/test/org/apache/lucene/queries/CommonTermsQueryTest.java (original)
+++ lucene/dev/branches/branch_5x/lucene/queries/src/test/org/apache/lucene/queries/CommonTermsQueryTest.java Wed Dec 24 05:55:32 2014
@@ -531,7 +531,7 @@ public class CommonTermsQueryTest extend
public static void createRandomIndex(int numdocs, RandomIndexWriter writer,
long seed) throws IOException {
Random random = new Random(seed);
- // primary source for our data is from linefiledocs, its realistic.
+ // primary source for our data is from linefiledocs, it's realistic.
LineFileDocs lineFileDocs = new LineFileDocs(random);
// TODO: we should add other fields that use things like docs&freqs but omit
Modified: lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html (original)
+++ lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html Wed Dec 24 05:55:32 2014
@@ -219,7 +219,7 @@ Child of <a href='#BoostQuery'>BoostQuer
<li> as a Clause in a BooleanQuery who's only other clause
is a "mustNot" match (Lucene requires at least one positive clause) and..</li>
<li> in a FilteredQuery where a Filter tag is effectively being
-used to select content rather than it's usual role of filtering the results of a query.</li>
+used to select content rather than its usual role of filtering the results of a query.</li>
</ol></p><p><span class='inTextTitle'>Example:</span> <em>Effectively use a Filter as a query </em>
</p><pre>
<FilteredQuery>
Modified: lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html (original)
+++ lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html Wed Dec 24 05:55:32 2014
@@ -225,7 +225,7 @@ Child of <a href='#Clause'>Clause</a>, <
<li> as a Clause in a BooleanQuery who's only other clause
is a "mustNot" match (Lucene requires at least one positive clause) and..</li>
<li> in a FilteredQuery where a Filter tag is effectively being
-used to select content rather than it's usual role of filtering the results of a query.</li>
+used to select content rather than its usual role of filtering the results of a query.</li>
</ol></p><p><span class='inTextTitle'>Example:</span> <em>Effectively use a Filter as a query </em>
</p><pre>
<FilteredQuery>
Modified: lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html (original)
+++ lucene/dev/branches/branch_5x/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html Wed Dec 24 05:55:32 2014
@@ -159,7 +159,7 @@
<span class="dtd_comment"> <li> as a Clause in a BooleanQuery who's only other clause</span>
<span class="dtd_comment"> is a "mustNot" match (Lucene requires at least one positive clause) and..</li></span>
<span class="dtd_comment"> <li> in a FilteredQuery where a Filter tag is effectively being </span>
-<span class="dtd_comment"> used to select content rather than it's usual role of filtering the results of a query.</li></span>
+<span class="dtd_comment"> used to select content rather than its usual role of filtering the results of a query.</li></span>
<span class="dtd_comment"> </ol></span>
<span class="dtd_comment"> </span>
<span class="dtd_comment"> </span><span class="dtd_dtddoc_tag">@example</span><span class="dtd_comment"> </span>
Modified: lucene/dev/branches/branch_5x/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SpanNearClauseFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SpanNearClauseFactory.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SpanNearClauseFactory.java (original)
+++ lucene/dev/branches/branch_5x/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SpanNearClauseFactory.java Wed Dec 24 05:55:32 2014
@@ -46,7 +46,7 @@ Operations:
Are SpanQuery weights handled correctly during search by Lucene?
Should the resulting SpanOrQuery be sorted?
Could other SpanQueries be added for use in this factory:
- - SpanOrQuery: in principle yes, but it only has access to it's terms
+ - SpanOrQuery: in principle yes, but it only has access to its terms
via getTerms(); are the corresponding weights available?
- SpanFirstQuery: treat similar to subquery SpanNearQuery. (ok?)
- SpanNotQuery: treat similar to subquery SpanNearQuery. (ok?)
Modified: lucene/dev/branches/branch_5x/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd (original)
+++ lucene/dev/branches/branch_5x/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd Wed Dec 24 05:55:32 2014
@@ -153,7 +153,7 @@ Passes content directly through to the s
<li> as a Clause in a BooleanQuery who's only other clause
is a "mustNot" match (Lucene requires at least one positive clause) and..</li>
<li> in a FilteredQuery where a Filter tag is effectively being
- used to select content rather than it's usual role of filtering the results of a query.</li>
+ used to select content rather than its usual role of filtering the results of a query.</li>
</ol>
@example
Modified: lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxOverlapRatioValueSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxOverlapRatioValueSource.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxOverlapRatioValueSource.java (original)
+++ lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxOverlapRatioValueSource.java Wed Dec 24 05:55:32 2014
@@ -51,7 +51,7 @@ import org.apache.lucene.search.Explanat
* Originally based on Geoportal's
* <a href="http://geoportal.svn.sourceforge.net/svnroot/geoportal/Geoportal/trunk/src/com/esri/gpt/catalog/lucene/SpatialRankingValueSource.java">
* SpatialRankingValueSource</a> but modified quite a bit. GeoPortal's algorithm will yield a score of 0
- * if either a line or point is compared, and it's doesn't output a 0-1 normalized score (it multiplies the factors),
+ * if either a line or point is compared, and it doesn't output a 0-1 normalized score (it multiplies the factors),
* and it doesn't support minSideLength, and it had dateline bugs.
*
* @lucene.experimental
Modified: lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/CellTokenStream.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/CellTokenStream.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/CellTokenStream.java (original)
+++ lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/CellTokenStream.java Wed Dec 24 05:55:32 2014
@@ -147,7 +147,7 @@ class CellTokenStream extends TokenStrea
cellAtt.setOmitLeafByte(false);
}
- /** Outputs the token of a cell, and if its a leaf, outputs it again with the leaf byte. */
+ /** Outputs the token of a cell, and if it's a leaf, outputs it again with the leaf byte. */
@Override
public final boolean incrementToken() {
if (iter == null)
Modified: lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java (original)
+++ lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java Wed Dec 24 05:55:32 2014
@@ -63,7 +63,7 @@ public interface Cell {
/**
* Returns the bytes for this cell, with a leaf byte if this is a leaf cell.
- * The result param is used to save object allocation, though it's bytes aren't used.
+ * The result param is used to save object allocation, though its bytes aren't used.
* @param result where the result goes, or null to create new
*/
BytesRef getTokenBytesWithLeaf(BytesRef result);
@@ -71,7 +71,7 @@ public interface Cell {
/**
* Returns the bytes for this cell, without leaf set. The bytes should sort before
* {@link #getTokenBytesWithLeaf(org.apache.lucene.util.BytesRef)}.
- * The result param is used to save object allocation, though it's bytes aren't used.
+ * The result param is used to save object allocation, though its bytes aren't used.
* @param result where the result goes, or null to create new
*/
BytesRef getTokenBytesNoLeaf(BytesRef result);
Modified: lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/SpatialPrefixTreeFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/SpatialPrefixTreeFactory.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/SpatialPrefixTreeFactory.java (original)
+++ lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/SpatialPrefixTreeFactory.java Wed Dec 24 05:55:32 2014
@@ -41,7 +41,7 @@ public abstract class SpatialPrefixTreeF
/**
* The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad".
- * If its neither of these, then "geohash" is chosen for a geo context, otherwise "quad" is chosen.
+ * If it's neither of these, then "geohash" is chosen for a geo context, otherwise "quad" is chosen.
*/
public static SpatialPrefixTree makeSPT(Map<String,String> args, ClassLoader classLoader, SpatialContext ctx) {
SpatialPrefixTreeFactory instance;
Modified: lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/util/ShapePredicateValueSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/util/ShapePredicateValueSource.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/util/ShapePredicateValueSource.java (original)
+++ lucene/dev/branches/branch_5x/lucene/spatial/src/java/org/apache/lucene/spatial/util/ShapePredicateValueSource.java Wed Dec 24 05:55:32 2014
@@ -42,7 +42,7 @@ public class ShapePredicateValueSource e
/**
*
- * @param shapeValuesource Must yield {@link Shape} instances from it's objectVal(doc). If null
+ * @param shapeValuesource Must yield {@link Shape} instances from its objectVal(doc). If null
* then the result is false. This is the left-hand (indexed) side.
* @param op the predicate
* @param queryShape The shape on the right-hand (query) side.
Modified: lucene/dev/branches/branch_5x/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/RandomSpatialOpFuzzyPrefixTreeTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/RandomSpatialOpFuzzyPrefixTreeTest.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/RandomSpatialOpFuzzyPrefixTreeTest.java (original)
+++ lucene/dev/branches/branch_5x/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/RandomSpatialOpFuzzyPrefixTreeTest.java Wed Dec 24 05:55:32 2014
@@ -180,7 +180,7 @@ public class RandomSpatialOpFuzzyPrefixT
new SpatialArgs(SpatialOperation.IsWithin, ctx.makeRectangle(38, 192, -72, 56))
), 1).numFound==0);//no-match
- //this time the rect is a little bigger and is considered a match. It's a
+ //this time the rect is a little bigger and is considered a match. It's
// an acceptable false-positive because of the grid approximation.
assertTrue(executeQuery(strategy.makeQuery(
new SpatialArgs(SpatialOperation.IsWithin, ctx.makeRectangle(38, 192, -72, 80))
@@ -462,7 +462,7 @@ public class RandomSpatialOpFuzzyPrefixT
return r;
//test all 4 corners
// Note: awkwardly, we use a non-geo context for this because in geo, -180 & +180 are the same place, which means
- // that "other" might wrap the world horizontally and yet all it's corners could be in shape1 (or shape2) even
+ // that "other" might wrap the world horizontally and yet all its corners could be in shape1 (or shape2) even
// though shape1 is only adjacent to the dateline. I couldn't think of a better way to handle this.
Rectangle oRect = (Rectangle)other;
if (cornerContainsNonGeo(oRect.getMinX(), oRect.getMinY())
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java Wed Dec 24 05:55:32 2014
@@ -236,7 +236,7 @@ public class DirectSpellChecker {
* True if the spellchecker should lowercase terms (default: true)
* <p>
* This is a convenience method, if your index field has more complicated
- * analysis (such as StandardTokenizer removing punctuation), its probably
+ * analysis (such as StandardTokenizer removing punctuation), it's probably
* better to turn this off, and instead run your query terms through your
* Analyzer first.
* <p>
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java Wed Dec 24 05:55:32 2014
@@ -55,8 +55,8 @@ public final class LuceneLevenshteinDist
// NOTE: if we cared, we could 3*m space instead of m*n space, similar to
// what LevenshteinDistance does, except cycling thru a ring of three
// horizontal cost arrays... but this comparator is never actually used by
- // DirectSpellChecker, its only used for merging results from multiple shards
- // in "distributed spellcheck", and its inefficient in other ways too...
+ // DirectSpellChecker, it's only used for merging results from multiple shards
+ // in "distributed spellcheck", and it's inefficient in other ways too...
// cheaper to do this up front once
targetPoints = toIntsRef(target);
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java Wed Dec 24 05:55:32 2014
@@ -568,7 +568,7 @@ public class SpellChecker implements jav
private static Document createDocument(String text, int ng1, int ng2) {
Document doc = new Document();
- // the word field is never queried on... its indexed so it can be quickly
+ // the word field is never queried on... it's indexed so it can be quickly
// checked for rebuild (and stored for retrieval). Doesn't need norms or TF/pos
Field f = new StringField(F_WORD, text, Field.Store.YES);
doc.add(f); // orig term
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentDictionary.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentDictionary.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentDictionary.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentDictionary.java Wed Dec 24 05:55:32 2014
@@ -235,8 +235,8 @@ public class DocumentDictionary implemen
/**
* Returns the value of the <code>weightField</code> for the current document.
- * Retrieves the value for the <code>weightField</code> if its stored (using <code>doc</code>)
- * or if its indexed as {@link NumericDocValues} (using <code>docId</code>) for the document.
+ * Retrieves the value for the <code>weightField</code> if it's stored (using <code>doc</code>)
+ * or if it's indexed as {@link NumericDocValues} (using <code>docId</code>) for the document.
* If no value is found, then the weight is 0.
*/
protected long getWeight(Document doc, int docId) {
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggesterTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggesterTest.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggesterTest.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggesterTest.java Wed Dec 24 05:55:32 2014
@@ -221,13 +221,13 @@ public class AnalyzingSuggesterTest exte
assertEquals("the ghost of christmas past", results.get(0).key.toString());
assertEquals(50, results.get(0).value, 0.01F);
- // omit the 'the' since its a stopword, its suggested anyway
+ // omit the 'the' since it's a stopword, it's suggested anyway
results = suggester.lookup(TestUtil.stringToCharSequence("ghost of chris", random()), false, 1);
assertEquals(1, results.size());
assertEquals("the ghost of christmas past", results.get(0).key.toString());
assertEquals(50, results.get(0).value, 0.01F);
- // omit the 'the' and 'of' since they are stopwords, its suggested anyway
+ // omit the 'the' and 'of' since they are stopwords, it's suggested anyway
results = suggester.lookup(TestUtil.stringToCharSequence("ghost chris", random()), false, 1);
assertEquals(1, results.size());
assertEquals("the ghost of christmas past", results.get(0).key.toString());
@@ -817,7 +817,7 @@ public class AnalyzingSuggesterTest exte
System.out.println(" analyzed: " + analyzedKey);
}
- // TODO: could be faster... but its slowCompletor for a reason
+ // TODO: could be faster... but it's slowCompletor for a reason
for (TermFreq2 e : slowCompletor) {
if (e.analyzedForm.startsWith(analyzedKey)) {
matches.add(e);
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/FuzzySuggesterTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/FuzzySuggesterTest.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/FuzzySuggesterTest.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/FuzzySuggesterTest.java Wed Dec 24 05:55:32 2014
@@ -186,13 +186,13 @@ public class FuzzySuggesterTest extends
assertEquals("the ghost of christmas past", results.get(0).key.toString());
assertEquals(50, results.get(0).value, 0.01F);
- // omit the 'the' since its a stopword, its suggested anyway
+ // omit the 'the' since it's a stopword, it's suggested anyway
results = suggester.lookup(TestUtil.stringToCharSequence("ghost of chris", random()), false, 1);
assertEquals(1, results.size());
assertEquals("the ghost of christmas past", results.get(0).key.toString());
assertEquals(50, results.get(0).value, 0.01F);
- // omit the 'the' and 'of' since they are stopwords, its suggested anyway
+ // omit the 'the' and 'of' since they are stopwords, it's suggested anyway
results = suggester.lookup(TestUtil.stringToCharSequence("ghost chris", random()), false, 1);
assertEquals(1, results.size());
assertEquals("the ghost of christmas past", results.get(0).key.toString());
@@ -755,7 +755,7 @@ public class FuzzySuggesterTest extends
Automaton automaton = suggester.convertAutomaton(suggester.toLevenshteinAutomata(suggester.toLookupAutomaton(analyzedKey)));
assertTrue(automaton.isDeterministic());
- // TODO: could be faster... but its slowCompletor for a reason
+ // TODO: could be faster... but it's slowCompletor for a reason
BytesRefBuilder spare = new BytesRefBuilder();
for (TermFreqPayload2 e : slowCompletor) {
spare.copyChars(e.analyzedForm);
@@ -1114,8 +1114,8 @@ public class FuzzySuggesterTest extends
// NOTE: if we cared, we could 3*m space instead of m*n space, similar to
// what LevenshteinDistance does, except cycling thru a ring of three
// horizontal cost arrays... but this comparator is never actually used by
- // DirectSpellChecker, its only used for merging results from multiple shards
- // in "distributed spellcheck", and its inefficient in other ways too...
+ // DirectSpellChecker, it's only used for merging results from multiple shards
+ // in "distributed spellcheck", and it's inefficient in other ways too...
// cheaper to do this up front once
targetPoints = toIntsRef(target);
Modified: lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/WFSTCompletionTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/WFSTCompletionTest.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/WFSTCompletionTest.java (original)
+++ lucene/dev/branches/branch_5x/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/WFSTCompletionTest.java Wed Dec 24 05:55:32 2014
@@ -162,10 +162,10 @@ public class WFSTCompletionTest extends
final int topN = TestUtil.nextInt(random, 1, 10);
List<LookupResult> r = suggester.lookup(TestUtil.stringToCharSequence(prefix, random), false, topN);
- // 2. go thru whole treemap (slowCompletor) and check its actually the best suggestion
+ // 2. go thru whole treemap (slowCompletor) and check it's actually the best suggestion
final List<LookupResult> matches = new ArrayList<>();
- // TODO: could be faster... but its slowCompletor for a reason
+ // TODO: could be faster... but it's slowCompletor for a reason
for (Map.Entry<String,Long> e : slowCompletor.entrySet()) {
if (e.getKey().startsWith(prefix)) {
matches.add(new LookupResult(e.getKey(), e.getValue().longValue()));
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/build.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/build.xml (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/build.xml Wed Dec 24 05:55:32 2014
@@ -46,7 +46,7 @@
<!-- redefine the clover setup, because we dont want to run clover for the test-framework -->
<target name="-clover.setup" if="run.clover"/>
- <!-- redefine the test compilation, so its just a no-op -->
+ <!-- redefine the test compilation, so it's just a no-op -->
<target name="compile-test"/>
<!-- redefine the forbidden apis for tests, as we check ourselves - no sysout testing -->
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java Wed Dec 24 05:55:32 2014
@@ -49,7 +49,7 @@ import org.apache.lucene.util.TestUtil;
/**
* Base class for all Lucene unit tests that use TokenStreams.
* <p>
- * When writing unit tests for analysis components, its highly recommended
+ * When writing unit tests for analysis components, it's highly recommended
* to use the helper methods here (especially in conjunction with {@link MockAnalyzer} or
* {@link MockTokenizer}), as they contain many assertions and checks to
* catch bugs.
@@ -508,7 +508,7 @@ public abstract class BaseTokenStreamTes
try {
checkRandomData(new Random(seed), a, iterations, maxWordLength, useCharFilter, simple, offsetsAreCorrect, iw);
// now test with multiple threads: note we do the EXACT same thing we did before in each thread,
- // so this should only really fail from another thread if its an actual thread problem
+ // so this should only really fail from another thread if it's an actual thread problem
int numThreads = TestUtil.nextInt(random, 2, 4);
final CountDownLatch startingGun = new CountDownLatch(1);
AnalysisThread threads[] = new AnalysisThread[numThreads];
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockAnalyzer.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockAnalyzer.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockAnalyzer.java Wed Dec 24 05:55:32 2014
@@ -30,7 +30,7 @@ import org.apache.lucene.util.automaton.
* <p>
* This analyzer is a replacement for Whitespace/Simple/KeywordAnalyzers
* for unit tests. If you are testing a custom component such as a queryparser
- * or analyzer-wrapper that consumes analysis streams, its a great idea to test
+ * or analyzer-wrapper that consumes analysis streams, it's a great idea to test
* it with this analyzer instead. MockAnalyzer has the following behavior:
* <ul>
* <li>By default, the assertions in {@link MockTokenizer} are turned on for extra
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockTokenizer.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockTokenizer.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/MockTokenizer.java Wed Dec 24 05:55:32 2014
@@ -33,7 +33,7 @@ import com.carrotsearch.randomizedtestin
* Tokenizer for testing.
* <p>
* This tokenizer is a replacement for {@link #WHITESPACE}, {@link #SIMPLE}, and {@link #KEYWORD}
- * tokenizers. If you are writing a component such as a TokenFilter, its a great idea to test
+ * tokenizers. If you are writing a component such as a TokenFilter, it's a great idea to test
* it wrapping this tokenizer instead for extra checks. This tokenizer has the following behavior:
* <ul>
* <li>An internal state-machine is used for checking consumer consistency. These checks can
@@ -66,7 +66,7 @@ public class MockTokenizer extends Token
int off = 0;
// buffered state (previous codepoint and offset). we replay this once we
- // hit a reject state in case its permissible as the start of a new term.
+ // hit a reject state in case it's permissible as the start of a new term.
int bufferedCodePoint = -1; // -1 indicates empty buffer
int bufferedOff = -1;
@@ -169,7 +169,7 @@ public class MockTokenizer extends Token
bufferedCodePoint = cp;
bufferedOff = endOffset;
} else {
- // otherwise, its because we hit term limit.
+ // otherwise, it's because we hit term limit.
bufferedCodePoint = -1;
}
int correctedStartOffset = correctOffset(startOffset);
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/package.html
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/package.html?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/package.html (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/analysis/package.html Wed Dec 24 05:55:32 2014
@@ -30,11 +30,11 @@ The main classes of interest are:
as it contains many assertions and checks to catch bugs. </li>
<li>{@link org.apache.lucene.analysis.MockTokenizer}: Tokenizer for testing.
Tokenizer that serves as a replacement for WHITESPACE, SIMPLE, and KEYWORD
- tokenizers. If you are writing a component such as a TokenFilter, its a great idea to test
+ tokenizers. If you are writing a component such as a TokenFilter, it's a great idea to test
it wrapping this tokenizer instead for extra checks. </li>
<li>{@link org.apache.lucene.analysis.MockAnalyzer}: Analyzer for testing.
Analyzer that uses MockTokenizer for additional verification. If you are testing a custom
- component such as a queryparser or analyzer-wrapper that consumes analysis streams, its a great
+ component such as a queryparser or analyzer-wrapper that consumes analysis streams, it's a great
idea to test it with this analyzer instead. </li>
</ul>
</p>
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/compressing/HighCompressionCompressingCodec.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/compressing/HighCompressionCompressingCodec.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/compressing/HighCompressionCompressingCodec.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/compressing/HighCompressionCompressingCodec.java Wed Dec 24 05:55:32 2014
@@ -29,7 +29,7 @@ public class HighCompressionCompressingC
/** Default constructor. */
public HighCompressionCompressingCodec() {
- // we don't worry about zlib block overhead as its
+ // we don't worry about zlib block overhead as it's
// not bad and try to save space instead:
this(61440, 512, false);
}
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/mockrandom/MockRandomPostingsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/mockrandom/MockRandomPostingsFormat.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/mockrandom/MockRandomPostingsFormat.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/codecs/mockrandom/MockRandomPostingsFormat.java Wed Dec 24 05:55:32 2014
@@ -91,7 +91,7 @@ public final class MockRandomPostingsFor
minSkipInterval = 2;
}
- // we pull this before the seed intentionally: because its not consumed at runtime
+ // we pull this before the seed intentionally: because it's not consumed at runtime
// (the skipInterval is written into postings header).
// NOTE: Currently not passed to postings writer.
// before, it was being passed in wrongly as acceptableOverhead!
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java Wed Dec 24 05:55:32 2014
@@ -58,7 +58,7 @@ public class AlcoholicMergePolicy extend
int hourOfDay = calendar.get(Calendar.HOUR_OF_DAY);
if (hourOfDay < 6 ||
hourOfDay > 20 ||
- // its 5 o'clock somewhere
+ // it's 5 o'clock somewhere
random.nextInt(23) == 5) {
Drink[] values = Drink.values();
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/index/RandomCodec.java Wed Dec 24 05:55:32 2014
@@ -74,7 +74,7 @@ public class RandomCodec extends Asserti
public final Set<String> avoidCodecs;
/** memorized field to postingsformat mappings */
- // note: we have to sync this map even though its just for debugging/toString,
+ // note: we have to sync this map even though it's just for debugging/toString,
// otherwise DWPT's .toString() calls that iterate over the map can
// cause concurrentmodificationexception if indexwriter's infostream is on
private Map<String,PostingsFormat> previousMappings = Collections.synchronizedMap(new HashMap<String,PostingsFormat>());
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/LeakFS.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/LeakFS.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/LeakFS.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/LeakFS.java Wed Dec 24 05:55:32 2014
@@ -55,7 +55,7 @@ public class LeakFS extends HandleTracki
@Override
public synchronized void onClose() {
if (!openHandles.isEmpty()) {
- // print the first one as its very verbose otherwise
+ // print the first one as it's very verbose otherwise
Exception cause = null;
Iterator<Exception> stacktraces = openHandles.values().iterator();
if (stacktraces.hasNext()) {
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/WindowsFS.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/WindowsFS.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/WindowsFS.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/mockfile/WindowsFS.java Wed Dec 24 05:55:32 2014
@@ -89,7 +89,7 @@ public class WindowsFS extends HandleTra
}
/**
- * Checks that its ok to delete {@code Path}. If the file
+ * Checks that it's ok to delete {@code Path}. If the file
* is still open, it throws IOException("access denied").
*/
private void checkDeleteAccess(Path path) throws IOException {
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/search/CheckHits.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/search/CheckHits.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/search/CheckHits.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/search/CheckHits.java Wed Dec 24 05:55:32 2014
@@ -342,13 +342,13 @@ public class CheckHits {
if (!deep) return;
Explanation detail[] = expl.getDetails();
- // TODO: can we improve this entire method? its really geared to work only with TF/IDF
+ // TODO: can we improve this entire method? it's really geared to work only with TF/IDF
if (expl.getDescription().endsWith("computed from:")) {
return; // something more complicated.
}
if (detail!=null) {
if (detail.length==1) {
- // simple containment, unless its a freq of: (which lets a query explain how the freq is calculated),
+ // simple containment, unless it's a freq of: (which lets a query explain how the freq is calculated),
// just verify contained expl has same score
if (!expl.getDescription().endsWith("with freq of:"))
verifyExplanation(q,doc,score,deep,detail[0]);
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java Wed Dec 24 05:55:32 2014
@@ -735,7 +735,7 @@ public abstract class BaseDirectoryTestC
// this test backdoors the directory via the filesystem. so it must be an FSDir (for now)
// TODO: figure a way to test this better/clean it up. E.g. we should be testing for FileSwitchDir,
- // if its using two FSdirs and so on
+ // if it's using two FSdirs and so on
if (fsdir instanceof FSDirectory == false) {
fsdir.close();
assumeTrue("test only works for FSDirectory subclasses", false);
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java Wed Dec 24 05:55:32 2014
@@ -269,7 +269,7 @@ public class MockDirectoryWrapper extend
success = true;
} finally {
if (success) {
- // we don't do this stuff with lucene's commit, but its just for completeness
+ // we don't do this stuff with lucene's commit, but it's just for completeness
if (unSyncedFiles.contains(source)) {
unSyncedFiles.remove(source);
unSyncedFiles.add(dest);
@@ -751,7 +751,7 @@ public class MockDirectoryWrapper extend
openFilesDeleted = new HashSet<>();
}
if (openFiles.size() > 0) {
- // print the first one as its very verbose otherwise
+ // print the first one as it's very verbose otherwise
Exception cause = null;
Iterator<Exception> stacktraces = openFileHandles.values().iterator();
if (stacktraces.hasNext()) {
@@ -806,7 +806,7 @@ public class MockDirectoryWrapper extend
}
}
- // its possible we cannot delete the segments_N on windows if someone has it open and
+ // it's possible we cannot delete the segments_N on windows if someone has it open and
// maybe other files too, depending on timing. normally someone on windows wouldnt have
// an issue (IFD would nuke this stuff eventually), but we pass NoDeletionPolicy...
for (String file : pendingDeletions) {
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/LineFileDocs.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/LineFileDocs.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/LineFileDocs.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/LineFileDocs.java Wed Dec 24 05:55:32 2014
@@ -90,7 +90,7 @@ public class LineFileDocs implements Clo
boolean needSkip = true;
long size = 0L, seekTo = 0L;
if (is == null) {
- // if its not in classpath, we load it as absolute filesystem path (e.g. Hudson's home dir)
+ // if it's not in classpath, we load it as absolute filesystem path (e.g. Hudson's home dir)
Path file = Paths.get(path);
size = Files.size(file);
if (path.endsWith(".gz")) {
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java Wed Dec 24 05:55:32 2014
@@ -113,7 +113,7 @@ final class TestRuleSetupAndRestoreClass
@Override
protected void before() throws Exception {
- // enable this by default, for IDE consistency with ant tests (as its the default from ant)
+ // enable this by default, for IDE consistency with ant tests (as it's the default from ant)
// TODO: really should be in solr base classes, but some extend LTC directly.
// we do this in beforeClass, because some tests currently disable it
restoreProperties.put("solr.directoryFactory", System.getProperty("solr.directoryFactory"));
Modified: lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java (original)
+++ lucene/dev/branches/branch_5x/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java Wed Dec 24 05:55:32 2014
@@ -847,7 +847,7 @@ public final class TestUtil {
}
MergeScheduler ms = w.getConfig().getMergeScheduler();
if (ms instanceof ConcurrentMergeScheduler) {
- // wtf... shouldnt it be even lower since its 1 by default?!?!
+ // wtf... shouldnt it be even lower since it's 1 by default?!?!
((ConcurrentMergeScheduler) ms).setMaxMergesAndThreads(3, 2);
}
}
Modified: lucene/dev/branches/branch_5x/lucene/tools/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/tools/build.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/tools/build.xml (original)
+++ lucene/dev/branches/branch_5x/lucene/tools/build.xml Wed Dec 24 05:55:32 2014
@@ -33,7 +33,7 @@
<path id="test.classpath"/>
- <!-- redefine the test compilation, so its just a no-op -->
+ <!-- redefine the test compilation, so it's just a no-op -->
<target name="compile-test"/>
<!-- redefine the forbidden apis to be no-ops -->
Modified: lucene/dev/branches/branch_5x/lucene/tools/custom-tasks.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/tools/custom-tasks.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/tools/custom-tasks.xml (original)
+++ lucene/dev/branches/branch_5x/lucene/tools/custom-tasks.xml Wed Dec 24 05:55:32 2014
@@ -47,7 +47,7 @@
<replaceregex pattern="[-]tests$" replace="-tests" flags="gi" />
- <!-- git hashcode pattern: its always 40 chars right? -->
+ <!-- git hashcode pattern: it's always 40 chars right? -->
<replaceregex pattern="\-[a-z0-9]{40,40}$" replace="" flags="gi" />
</filtermapper>
Modified: lucene/dev/branches/branch_5x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/CHANGES.txt?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/solr/CHANGES.txt Wed Dec 24 05:55:32 2014
@@ -869,9 +869,9 @@ Bug Fixes
* SOLR-6393: TransactionLog replay performance on HDFS is very poor. (Mark Miller)
* SOLR-6268: HdfsUpdateLog has a race condition that can expose a closed HDFS FileSystem instance and should
- close it's FileSystem instance if either inherited close method is called. (Mark Miller)
+ close its FileSystem instance if either inherited close method is called. (Mark Miller)
-* SOLR-6089: When using the HDFS block cache, when a file is deleted, it's underlying data entries in the
+* SOLR-6089: When using the HDFS block cache, when a file is deleted, its underlying data entries in the
block cache are not removed, which is a problem with the global block cache option.
(Mark Miller, Patrick Hunt)
@@ -947,7 +947,7 @@ Other Changes
* SOLR-6270: Increased timeouts for MultiThreadedOCPTest. (shalin)
-* SOLR-6274: UpdateShardHandler should log the params used to configure it's
+* SOLR-6274: UpdateShardHandler should log the params used to configure its
HttpClient. (Ramkumar Aiyengar via Mark Miller)
* SOLR-6194: Opened up "public" access to DataSource, DocBuilder, and EntityProcessorWrapper
@@ -1053,7 +1053,7 @@ Bug Fixes
(Timothy Potter)
* SOLR-6002: Fix a couple of ugly issues around SolrIndexWriter close and
- rollback as well as how SolrIndexWriter manages it's ref counted directory
+ rollback as well as how SolrIndexWriter manages its ref counted directory
instance. (Mark Miller, Gregory Chanan)
* SOLR-6015: Better way to handle managed synonyms when ignoreCase=true
@@ -1482,7 +1482,7 @@ Bug Fixes
* SOLR-5647: The lib paths in example-schemaless will now load correctly.
(Paul Westin via Shawn Heisey)
-* SOLR-5770: All attempts to match a SolrCore with it's state in clusterstate.json
+* SOLR-5770: All attempts to match a SolrCore with its state in clusterstate.json
should be done with the CoreNodeName. (Steve Davids via Mark Miller)
* SOLR-5875: QueryComponent.mergeIds() unmarshals all docs' sort field values once
@@ -1543,7 +1543,7 @@ Bug Fixes
problem if you hit a bad work item. (Mark Miller)
* SOLR-5796: Increase how long we are willing to wait for a core to see the ZK
- advertised leader in it's local state. (Timothy Potter, Mark Miller)
+ advertised leader in its local state. (Timothy Potter, Mark Miller)
* SOLR-5834: Overseer threads are only being interrupted and not closed.
(hossman, Mark Miller)
@@ -1571,7 +1571,7 @@ Other Changes
---------------------
* SOLR-5796: Make how long we are willing to wait for a core to see the ZK
- advertised leader in it's local state configurable.
+ advertised leader in its local state configurable.
(Timothy Potter via Mark Miller)
================== 4.7.0 ==================
@@ -1711,8 +1711,8 @@ Bug Fixes
* SOLR-4612: Admin UI - Analysis Screen contains empty table-columns (steffkes)
-* SOLR-5451: SyncStrategy closes it's http connection manager before the
- executor that uses it in it's close method. (Mark Miller)
+* SOLR-5451: SyncStrategy closes its http connection manager before the
+ executor that uses it in its close method. (Mark Miller)
* SOLR-5460: SolrDispatchFilter#sendError can get a SolrCore that it does not
close. (Mark Miller)
@@ -1720,7 +1720,7 @@ Bug Fixes
* SOLR-5461: Request proxying should only set con.setDoOutput(true) if the
request is a post. (Mark Miller)
-* SOLR-5481: SolrCmdDistributor should not let the http client do it's own
+* SOLR-5481: SolrCmdDistributor should not let the http client do its own
retries. (Mark Miller)
* LUCENE-5347: Fixed Solr's Zookeeper Client to copy files to Zookeeper using
@@ -1801,7 +1801,7 @@ Bug Fixes
of multiValued string fields. (Andreas Hubold, Vitaliy Zhovtyuk via shalin)
* SOLR-5593: Replicas should accept the last updates from a leader that has just
- lost it's connection to ZooKeeper. (Christine Poerschke via Mark Miller)
+ lost its connection to ZooKeeper. (Christine Poerschke via Mark Miller)
* SOLR-5678: SolrZkClient should throw a SolrException when connect times out
rather than a RuntimeException. (Karl Wright, Anshum Gupta, Mark Miller)
@@ -2413,7 +2413,7 @@ New Features
where items are preserved across commits. (Robert Muir)
* SOLR-4249: UniqFieldsUpdateProcessorFactory now extends
- FieldMutatingUpdateProcessorFactory and supports all of it's selector options. Use
+ FieldMutatingUpdateProcessorFactory and supports all of its selector options. Use
of the "fields" init param is now deprecated in favor of "fieldName" (hossman)
* SOLR-2548: Allow multiple threads to be specified for faceting. When threading, one
@@ -3230,7 +3230,7 @@ Bug Fixes
fullpath not path. (Mark Miller)
* SOLR-4555: When forceNew is used with CachingDirectoryFactory#get, the old
- CachValue should give up it's path as it will be used by a new Directory
+ CachValue should give up its path as it will be used by a new Directory
instance. (Mark Miller)
* SOLR-4578: CoreAdminHandler#handleCreateAction gets a SolrCore and does not
@@ -3251,7 +3251,7 @@ Bug Fixes
working correctly. (Mark Miller)
* SOLR-4570: Even if an explicit shard id is used, ZkController#preRegister
- should still wait to see the shard id in it's current ClusterState.
+ should still wait to see the shard id in its current ClusterState.
(Mark Miller)
* SOLR-4585: The Collections API validates numShards with < 0 but should use
@@ -3279,7 +3279,7 @@ Bug Fixes
Directory has a refCnt of 0, but it should call closeDirectory(CacheValue).
(Mark Miller)
-* SOLR-4602: ZkController#unregister should cancel it's election participation
+* SOLR-4602: ZkController#unregister should cancel its election participation
before asking the Overseer to delete the SolrCore information. (Mark Miller)
* SOLR-4601: A Collection that is only partially created and then deleted will
@@ -3308,7 +3308,7 @@ Bug Fixes
when used in field:value queries in the lucene QParser. (hossman, yonik)
* SOLR-4617: SolrCore#reload needs to pass the deletion policy to the next
- SolrCore through it's constructor rather than setting a field after.
+ SolrCore through its constructor rather than setting a field after.
(Mark Miller)
* SOLR-4589: Fixed CPU spikes and poor performance in lazy field loading
@@ -3763,7 +3763,7 @@ New Features
* SOLR-4271: Add support for PostingsHighlighter. (Robert Muir)
* SOLR-4255: The new Solr 4 spatial fields now have a 'filter' boolean local-param
- that can be set to false to not filter. Its useful when there is already a spatial
+ that can be set to false to not filter. It's useful when there is already a spatial
filter query but you also need to sort or boost by distance. (David Smiley)
* SOLR-4265, SOLR-4283: Solr now parses request parameters (in URL or sent with POST
@@ -3973,7 +3973,7 @@ Bug Fixes
* SOLR-3959: Ensure the internal comma separator of poly fields is escaped
for CSVResponseWriter. (Areek Zillur via Robert Muir)
-* SOLR-4075: A logical shard that has had all of it's SolrCores unloaded should
+* SOLR-4075: A logical shard that has had all of its SolrCores unloaded should
be removed from the cluster state. (Mark Miller, Gilles Comeau)
* SOLR-4034: Check if a collection already exists before trying to create a
@@ -3983,7 +3983,7 @@ Bug Fixes
(Mark Miller)
* SOLR-4099: Allow the collection api work queue to make forward progress even
- when it's watcher is not fired for some reason. (Raintung Li via Mark Miller)
+ when its watcher is not fired for some reason. (Raintung Li via Mark Miller)
* SOLR-3960: Fixed a bug where Distributed Grouping ignored PostFilters
(Nathan Visagan, hossman)
@@ -3999,7 +3999,7 @@ Bug Fixes
options from being respected in some <fieldType/> declarations (hossman)
* SOLR-4159: When we are starting a shard from rest, a potential leader should
- not consider it's last published state when deciding if it can be the new
+ not consider its last published state when deciding if it can be the new
leader. (Mark Miller)
* SOLR-4158: When a core is registering in ZooKeeper it may not wait long
@@ -4031,7 +4031,7 @@ Bug Fixes
(steffkes via hossman)
* SOLR-4178: ReplicationHandler should abort any current pulls and wait for
- it's executor to stop during core close. (Mark Miller)
+ its executor to stop during core close. (Mark Miller)
* SOLR-3918: Fixed the 'dist-war-excl-slf4j' ant target to exclude all
slf4j jars, so that the resulting war is usable as is provided the servlet
@@ -4231,7 +4231,7 @@ Upgrading from Solr 4.0.0-BETA
In order to better support distributed search mode, the TermVectorComponent's
response format has been changed so that if the schema defines a
uniqueKeyField, then that field value is used as the "key" for each document in
-it's response section, instead of the internal lucene doc id. Users w/o a
+its response section, instead of the internal lucene doc id. Users w/o a
uniqueKeyField will continue to see the same response format. See SOLR-3229
for more details.
@@ -4525,7 +4525,7 @@ Bug Fixes
* SOLR-3783: Fixed Pivot Faceting to work with facet.missing=true (hossman)
-* SOLR-3869: A PeerSync attempt to it's replicas by a candidate leader should
+* SOLR-3869: A PeerSync attempt to its replicas by a candidate leader should
not fail on o.a.http.conn.ConnectTimeoutException. (Mark Miller)
* SOLR-3875: Fixed index boosts on multi-valued fields when docBoost is used
@@ -6458,7 +6458,7 @@ New Features
the terms component. Example: fq={!term f=weight}1.5 (hossman, yonik)
* SOLR-1915: DebugComponent now supports using a NamedList to model
- Explanation objects in it's responses instead of
+ Explanation objects in its responses instead of
Explanation.toString (hossman)
* SOLR-2448: Search results clustering updates: bisecting k-means
@@ -6492,7 +6492,7 @@ Bug Fixes
commit point on server startup is never removed. (yonik)
* SOLR-2466: SolrJ's CommonsHttpSolrServer would retry requests on failure, regardless
- of the configured maxRetries, due to HttpClient having it's own retry mechanism
+ of the configured maxRetries, due to HttpClient having its own retry mechanism
by default. The retryCount of HttpClient is now set to 0, and SolrJ does
the retry. (yonik)
@@ -7402,7 +7402,7 @@ If you use custom Tokenizer or TokenFilt
schema.xml, they must support reusability. If your Tokenizer or TokenFilter
maintains state, it should implement reset(). If your TokenFilteFactory does
not return a subclass of TokenFilter, then it should implement reset() and call
-reset() on it's input TokenStream. TokenizerFactory implementations must
+reset() on its input TokenStream. TokenizerFactory implementations must
now return a Tokenizer rather than a TokenStream.
New users of Solr 1.4 will have omitTermFreqAndPositions enabled for non-text
@@ -7640,8 +7640,8 @@ New Features
47. SOLR-1106: Made CoreAdminHandler Actions pluggable so that additional actions may be plugged in or the existing
ones can be overridden if needed. (Kay Kay, Noble Paul, shalin)
-48. SOLR-1124: Add a top() function query that causes it's argument to
- have it's values derived from the top level IndexReader, even when
+48. SOLR-1124: Add a top() function query that causes its argument to
+ have its values derived from the top level IndexReader, even when
invoked from a sub-reader. top() is implicitly used for the
ord() and rord() functions. (yonik)
@@ -9393,7 +9393,7 @@ Changes in runtime behavior
3. A new method "getSolrQueryParser" has been added to the IndexSchema
class for retrieving a new SolrQueryParser instance with all options
specified in the schema.xml's <solrQueryParser> block set. The
- documentation for the SolrQueryParser constructor and it's use of
+ documentation for the SolrQueryParser constructor and its use of
IndexSchema have also been clarified.
(Erik Hatcher and hossman)
Modified: lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java Wed Dec 24 05:55:32 2014
@@ -60,7 +60,7 @@ public class TestICUCollationField exten
* Ugly: but what to do? We want to test custom sort, which reads rules in as a resource.
* These are largish files, and jvm-specific (as our documentation says, you should always
* look out for jvm differences with collation).
- * So its preferable to create this file on-the-fly.
+ * So it's preferable to create this file on-the-fly.
*/
public static String setupSolrHome() throws Exception {
String tmpFile = createTempDir().toFile().getAbsolutePath();
Modified: lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java Wed Dec 24 05:55:32 2014
@@ -58,7 +58,7 @@ public class TestICUCollationFieldDocVal
* Ugly: but what to do? We want to test custom sort, which reads rules in as a resource.
* These are largish files, and jvm-specific (as our documentation says, you should always
* look out for jvm differences with collation).
- * So its preferable to create this file on-the-fly.
+ * So it's preferable to create this file on-the-fly.
*/
public static String setupSolrHome() throws Exception {
File tmpFile = createTempDir().toFile();
Modified: lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/expression/MultiDelegateExpression.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/expression/MultiDelegateExpression.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/expression/MultiDelegateExpression.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/expression/MultiDelegateExpression.java Wed Dec 24 05:55:32 2014
@@ -33,7 +33,7 @@ public abstract class MultiDelegateExpre
}
}
/**
- * <code>AddExpression</code> returns the sum of it's components' values.
+ * <code>AddExpression</code> returns the sum of its components' values.
*/
class AddExpression extends MultiDelegateExpression {
public AddExpression(Expression[] delegates) {
@@ -56,7 +56,7 @@ class AddExpression extends MultiDelegat
}
}
/**
- * <code>MultiplyExpression</code> returns the product of it's delegates' values.
+ * <code>MultiplyExpression</code> returns the product of its delegates' values.
*/
class MultiplyExpression extends MultiDelegateExpression {
public MultiplyExpression(Expression[] delegates) {
@@ -110,7 +110,7 @@ class DateMathExpression extends MultiDe
}
}
/**
- * <code>ConcatenateExpression</code> returns the concatenation of it's delegates' values in the order given.
+ * <code>ConcatenateExpression</code> returns the concatenation of its delegates' values in the order given.
*/
class ConcatenateExpression extends MultiDelegateExpression {
public ConcatenateExpression(Expression[] delegates) {
Modified: lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/AddDoubleFunction.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/AddDoubleFunction.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/AddDoubleFunction.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/AddDoubleFunction.java Wed Dec 24 05:55:32 2014
@@ -22,7 +22,7 @@ import org.apache.lucene.queries.functio
import org.apache.solr.analytics.util.AnalyticsParams;
/**
- * <code>AddDoubleFunction</code> returns the sum of it's components.
+ * <code>AddDoubleFunction</code> returns the sum of its components.
*/
public class AddDoubleFunction extends MultiDoubleFunction {
public final static String NAME = AnalyticsParams.ADD;
Modified: lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/MultiplyDoubleFunction.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/MultiplyDoubleFunction.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/MultiplyDoubleFunction.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/analytics/src/java/org/apache/solr/analytics/util/valuesource/MultiplyDoubleFunction.java Wed Dec 24 05:55:32 2014
@@ -22,7 +22,7 @@ import org.apache.lucene.queries.functio
import org.apache.solr.analytics.util.AnalyticsParams;
/**
- * <code>MultiplyDoubleFunction</code> returns the product of it's components.
+ * <code>MultiplyDoubleFunction</code> returns the product of its components.
*/
public class MultiplyDoubleFunction extends MultiDoubleFunction {
public final static String NAME = AnalyticsParams.MULTIPLY;
Modified: lucene/dev/branches/branch_5x/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml Wed Dec 24 05:55:32 2014
@@ -305,7 +305,7 @@
</requestHandler>
<!-- DisMaxRequestHandler allows easy searching across multiple fields
- for simple user-entered phrases. It's implementation is now
+ for simple user-entered phrases. Its implementation is now
just the standard SearchHandler with a default query parser
of "dismax".
see http://wiki.apache.org/solr/DisMaxRequestHandler
Modified: lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler-extras/src/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler-extras/src/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler-extras/src/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler-extras/src/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java Wed Dec 24 05:55:32 2014
@@ -534,7 +534,7 @@ public class MailEntityProcessor extends
}
public void remove() {
- throw new UnsupportedOperationException("Its read only mode...");
+ throw new UnsupportedOperationException("It's read only mode...");
}
private void getTopLevelFolders(Store mailBox) {
@@ -544,7 +544,7 @@ public class MailEntityProcessor extends
try {
folders.add(mailbox.getFolder(topLevelFolders.get(i)));
} catch (MessagingException e) {
- // skip bad ones unless its the last one and still no good folder
+ // skip bad ones unless it's the last one and still no good folder
if (folders.size() == 0 && i == topLevelFolders.size() - 1) throw new DataImportHandlerException(
DataImportHandlerException.SEVERE, "Folder retreival failed");
}
@@ -705,7 +705,7 @@ public class MailEntityProcessor extends
}
public void remove() {
- throw new UnsupportedOperationException("Its read only mode...");
+ throw new UnsupportedOperationException("It's read only mode...");
}
private SearchTerm getSearchTerm() {
Modified: lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestXPathRecordReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestXPathRecordReader.java?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestXPathRecordReader.java (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestXPathRecordReader.java Wed Dec 24 05:55:32 2014
@@ -394,7 +394,7 @@ public class TestXPathRecordReader exten
+ " this <boo>top level</boo> is ignored because it is external to the forEach\n"
+ " <status>as is <boo>this element</boo></status>\n"
+ " <contenido id=\"10097\" idioma=\"cat\">\n"
- + " This one is <boo>not ignored as its</boo> inside a forEach\n"
+ + " This one is <boo>not ignored as it's</boo> inside a forEach\n"
+ " <antetitulo><i> big <boo>antler</boo></i></antetitulo>\n"
+ " <titulo> My <i>flattened <boo>title</boo></i> </titulo>\n"
+ " <resumen> My summary <i>skip this!</i> </resumen>\n"
@@ -407,15 +407,15 @@ public class TestXPathRecordReader exten
assertEquals(1, l.size());
Map<String, Object> m = l.get(0);
assertEquals("This one is inside a forEach", m.get("cont").toString().trim());
- assertEquals("10097" ,m.get("id"));
- assertEquals("My flattened title",m.get("title").toString().trim());
- assertEquals("My summary" ,m.get("resume").toString().trim());
- assertEquals("My text" ,m.get("text").toString().trim());
- assertEquals("not ignored as its",(String) ((List) m.get("descdend")).get(0) );
- assertEquals("antler" ,(String) ((List) m.get("descdend")).get(1) );
- assertEquals("Within the body of",(String) ((List) m.get("descdend")).get(2) );
- assertEquals("inner as well" ,(String) ((List) m.get("descdend")).get(3) );
- assertEquals("sub clauses" ,m.get("inr_descd").toString().trim());
+ assertEquals("10097" ,m.get("id"));
+ assertEquals("My flattened title" ,m.get("title").toString().trim());
+ assertEquals("My summary" ,m.get("resume").toString().trim());
+ assertEquals("My text" ,m.get("text").toString().trim());
+ assertEquals("not ignored as it's",(String) ((List) m.get("descdend")).get(0) );
+ assertEquals("antler" ,(String) ((List) m.get("descdend")).get(1) );
+ assertEquals("Within the body of" ,(String) ((List) m.get("descdend")).get(2) );
+ assertEquals("inner as well" ,(String) ((List) m.get("descdend")).get(3) );
+ assertEquals("sub clauses" ,m.get("inr_descd").toString().trim());
}
@Test
@@ -428,7 +428,7 @@ public class TestXPathRecordReader exten
+ " this <boo>top level</boo> is ignored because it is external to the forEach\n"
+ " <status>as is <boo>this element</boo></status>\n"
+ " <contenido id=\"10097\" idioma=\"cat\">\n"
- + " This one is <boo>not ignored as its</boo> inside a forEach\n"
+ + " This one is <boo>not ignored as it's</boo> inside a forEach\n"
+ " <antetitulo><i> big <boo>antler</boo></i></antetitulo>\n"
+ " <titulo> My <i>flattened <boo>title</boo></i> </titulo>\n"
+ " <resumen> My summary <i>skip this!</i> </resumen>\n"
@@ -440,13 +440,13 @@ public class TestXPathRecordReader exten
List<Map<String, Object>> l = rr.getAllRecords(new StringReader(xml));
assertEquals(1, l.size());
Map<String, Object> m = l.get(0);
- assertEquals("top level" ,(String) ((List) m.get("descdend")).get(0) );
- assertEquals("this element" ,(String) ((List) m.get("descdend")).get(1) );
- assertEquals("not ignored as its",(String) ((List) m.get("descdend")).get(2) );
- assertEquals("antler" ,(String) ((List) m.get("descdend")).get(3) );
- assertEquals("title" ,(String) ((List) m.get("descdend")).get(4) );
- assertEquals("Within the body of",(String) ((List) m.get("descdend")).get(5) );
- assertEquals("inner as well" ,(String) ((List) m.get("descdend")).get(6) );
+ assertEquals("top level" ,(String) ((List) m.get("descdend")).get(0) );
+ assertEquals("this element" ,(String) ((List) m.get("descdend")).get(1) );
+ assertEquals("not ignored as it's",(String) ((List) m.get("descdend")).get(2) );
+ assertEquals("antler" ,(String) ((List) m.get("descdend")).get(3) );
+ assertEquals("title" ,(String) ((List) m.get("descdend")).get(4) );
+ assertEquals("Within the body of" ,(String) ((List) m.get("descdend")).get(5) );
+ assertEquals("inner as well" ,(String) ((List) m.get("descdend")).get(6) );
}
@Test
@@ -459,7 +459,7 @@ public class TestXPathRecordReader exten
+ " this <boo>top level</boo> is ignored because it is external to the forEach\n"
+ " <status>as is <boo>this element</boo></status>\n"
+ " <contenido id=\"10097\" idioma=\"cat\">\n"
- + " This one is <boo>not ignored as its</boo> inside a forEach\n"
+ + " This one is <boo>not ignored as it's</boo> inside a forEach\n"
+ " <antetitulo><i> big <boo>antler</boo></i></antetitulo>\n"
+ " <titulo> My <i>flattened <boo>title</boo></i> </titulo>\n"
+ " <resumen> My summary <i>skip this!</i> </resumen>\n"
@@ -471,11 +471,11 @@ public class TestXPathRecordReader exten
List<Map<String, Object>> l = rr.getAllRecords(new StringReader(xml));
assertEquals(1, l.size());
Map<String, Object> m = l.get(0);
- assertEquals("not ignored as its",((List) m.get("descdend")).get(0) );
- assertEquals("antler" ,((List) m.get("descdend")).get(1) );
- assertEquals("title" ,((List) m.get("descdend")).get(2) );
- assertEquals("Within the body of",((List) m.get("descdend")).get(3) );
- assertEquals("inner as well" ,((List) m.get("descdend")).get(4) );
+ assertEquals("not ignored as it's",((List) m.get("descdend")).get(0) );
+ assertEquals("antler" ,((List) m.get("descdend")).get(1) );
+ assertEquals("title" ,((List) m.get("descdend")).get(2) );
+ assertEquals("Within the body of" ,((List) m.get("descdend")).get(3) );
+ assertEquals("inner as well" ,((List) m.get("descdend")).get(4) );
}
@Test
Modified: lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/solrconfig.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/solrconfig.xml Wed Dec 24 05:55:32 2014
@@ -122,7 +122,7 @@
index format, but hooks into the schema to provide per-field customization of
the postings lists and per-document values in the fieldType element
(postingsFormat/docValuesFormat). Note that most of the alternative implementations
- are experimental, so if you choose to customize the index format, its a good
+ are experimental, so if you choose to customize the index format, it's a good
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
before upgrading to a newer version to avoid unnecessary reindexing.
-->
Modified: lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/solrconfig.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/solrconfig.xml Wed Dec 24 05:55:32 2014
@@ -138,7 +138,7 @@
index format, but hooks into the schema to provide per-field customization of
the postings lists and per-document values in the fieldType element
(postingsFormat/docValuesFormat). Note that most of the alternative implementations
- are experimental, so if you choose to customize the index format, its a good
+ are experimental, so if you choose to customize the index format, it's a good
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
before upgrading to a newer version to avoid unnecessary reindexing.
-->
Modified: lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/solrconfig.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/solrconfig.xml Wed Dec 24 05:55:32 2014
@@ -140,7 +140,7 @@
index format, but hooks into the schema to provide per-field customization of
the postings lists and per-document values in the fieldType element
(postingsFormat/docValuesFormat). Note that most of the alternative implementations
- are experimental, so if you choose to customize the index format, its a good
+ are experimental, so if you choose to customize the index format, it's a good
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
before upgrading to a newer version to avoid unnecessary reindexing.
-->
Modified: lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/solrconfig.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/solrconfig.xml Wed Dec 24 05:55:32 2014
@@ -122,7 +122,7 @@
index format, but hooks into the schema to provide per-field customization of
the postings lists and per-document values in the fieldType element
(postingsFormat/docValuesFormat). Note that most of the alternative implementations
- are experimental, so if you choose to customize the index format, its a good
+ are experimental, so if you choose to customize the index format, it's a good
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
before upgrading to a newer version to avoid unnecessary reindexing.
-->
Modified: lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcloud/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcloud/conf/solrconfig.xml?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcloud/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/solr/solrcloud/conf/solrconfig.xml Wed Dec 24 05:55:32 2014
@@ -141,7 +141,7 @@
index format, but hooks into the schema to provide per-field customization of
the postings lists and per-document values in the fieldType element
(postingsFormat/docValuesFormat). Note that most of the alternative implementations
- are experimental, so if you choose to customize the index format, its a good
+ are experimental, so if you choose to customize the index format, it's a good
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
before upgrading to a newer version to avoid unnecessary reindexing.
-->
Modified: lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/test-morphlines/tutorialReadAvroContainer.conf
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/test-morphlines/tutorialReadAvroContainer.conf?rev=1647736&r1=1647735&r2=1647736&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/test-morphlines/tutorialReadAvroContainer.conf (original)
+++ lucene/dev/branches/branch_5x/solr/contrib/morphlines-core/src/test-files/test-morphlines/tutorialReadAvroContainer.conf Wed Dec 24 05:55:32 2014
@@ -34,7 +34,7 @@ SOLR_LOCATOR : {
# transformation chain. A morphline consists of one or more (potentially
# nested) commands. A morphline is a way to consume records (e.g. Flume events,
# HDFS files or blocks), turn them into a stream of records, and pipe the stream
-# of records through a set of easily configurable transformations on it's way to
+# of records through a set of easily configurable transformations on its way to
# Solr.
morphlines : [
{