lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [11/31] lucene-solr:feature/autoscaling: SOLR-10371: There is some spelling mistakes in the Java source code Thanks hu xiaodong"
Date Thu, 30 Mar 2017 11:39:42 GMT
SOLR-10371: There is some spelling mistakes in the Java source code Thanks hu xiaodong"


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/294692ca
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/294692ca
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/294692ca

Branch: refs/heads/feature/autoscaling
Commit: 294692ca340f31f2b49e9d66f88975b44f4a4d56
Parents: c6e8f9c
Author: Erick Erickson <erick@apache.org>
Authored: Mon Mar 27 09:31:15 2017 -0700
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Thu Mar 30 17:09:04 2017 +0530

----------------------------------------------------------------------
 .../org/apache/lucene/search/suggest/FileDictionary.java  |  8 ++++----
 .../lucene/search/suggest/document/SuggestField.java      |  2 +-
 .../org/apache/solr/analytics/request/AnalyticsStats.java |  2 +-
 .../apache/solr/handler/dataimport/XPathRecordReader.java | 10 +++++-----
 .../org/apache/solr/internal/csv/writer/CSVConfig.java    |  2 +-
 .../apache/solr/internal/csv/writer/CSVConfigGuesser.java |  8 ++++----
 .../test/org/apache/solr/cloud/TestRandomFlRTGCloud.java  |  4 ++--
 .../java/org/apache/solr/common/cloud/ZkStateReader.java  |  2 +-
 .../org/apache/solr/common/util/JsonRecordReader.java     |  2 +-
 .../src/java/org/apache/solr/common/util/StrUtils.java    |  2 +-
 10 files changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/lucene/suggest/src/java/org/apache/lucene/search/suggest/FileDictionary.java
----------------------------------------------------------------------
diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/FileDictionary.java
b/lucene/suggest/src/java/org/apache/lucene/search/suggest/FileDictionary.java
index 7d49518..b0660a9 100644
--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/FileDictionary.java
+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/FileDictionary.java
@@ -67,7 +67,7 @@ public class FileDictionary implements Dictionary {
   /**
    * Creates a dictionary based on an inputstream.
    * Using {@link #DEFAULT_FIELD_DELIMITER} as the 
-   * field seperator in a line.
+   * field separator in a line.
    * <p>
    * NOTE: content is treated as UTF-8
    */
@@ -78,7 +78,7 @@ public class FileDictionary implements Dictionary {
   /**
    * Creates a dictionary based on a reader.
    * Using {@link #DEFAULT_FIELD_DELIMITER} as the 
-   * field seperator in a line.
+   * field separator in a line.
    */
   public FileDictionary(Reader reader) {
     this(reader, DEFAULT_FIELD_DELIMITER);
@@ -86,7 +86,7 @@ public class FileDictionary implements Dictionary {
   
   /**
    * Creates a dictionary based on a reader. 
-   * Using <code>fieldDelimiter</code> to seperate out the
+   * Using <code>fieldDelimiter</code> to separate out the
    * fields in a line.
    */
   public FileDictionary(Reader reader, String fieldDelimiter) {
@@ -96,7 +96,7 @@ public class FileDictionary implements Dictionary {
   
   /**
    * Creates a dictionary based on an inputstream.
-   * Using <code>fieldDelimiter</code> to seperate out the
+   * Using <code>fieldDelimiter</code> to separate out the
    * fields in a line.
    * <p>
    * NOTE: content is treated as UTF-8

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java
----------------------------------------------------------------------
diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java
b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java
index e5bdda9..7f06328 100644
--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java
+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java
@@ -38,7 +38,7 @@ import org.apache.lucene.util.BytesRef;
  * Besides the usual {@link org.apache.lucene.analysis.Analyzer}s,
  * {@link CompletionAnalyzer}
  * can be used to tune suggest field only parameters
- * (e.g. preserving token seperators, preserving position increments
+ * (e.g. preserving token separators, preserving position increments
  * when converting the token stream to an automaton)
  * </p>
  * <p>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/contrib/analytics/src/java/org/apache/solr/analytics/request/AnalyticsStats.java
----------------------------------------------------------------------
diff --git a/solr/contrib/analytics/src/java/org/apache/solr/analytics/request/AnalyticsStats.java
b/solr/contrib/analytics/src/java/org/apache/solr/analytics/request/AnalyticsStats.java
index a9cdef9..771aff7 100644
--- a/solr/contrib/analytics/src/java/org/apache/solr/analytics/request/AnalyticsStats.java
+++ b/solr/contrib/analytics/src/java/org/apache/solr/analytics/request/AnalyticsStats.java
@@ -76,7 +76,7 @@ public class AnalyticsStats {
     // Get filter to all docs
     Filter filter = docs.getTopFilter();
     
-    // Computing each Analytics Request Seperately
+    // Computing each Analytics Request Separately
     for( AnalyticsRequest areq : requests ){
       // The Accumulator which will control the statistics generation
       // for the entire analytics request

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java
----------------------------------------------------------------------
diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java
b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java
index 69c6c57..311215c 100644
--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java
+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/XPathRecordReader.java
@@ -145,7 +145,7 @@ public class XPathRecordReader {
     if (!xpath.startsWith("/"))
       throw new RuntimeException("xpath must start with '/' : " + xpath);
     List<String> paths = splitEscapeQuote(xpath);
-    // deal with how split behaves when seperator starts a string!
+    // deal with how split behaves when separator starts a string!
     if ("".equals(paths.get(0).trim()))
       paths.remove(0);
     rootNode.build(paths, name, multiValued, isRecord, flags);
@@ -600,19 +600,19 @@ public class XPathRecordReader {
 
 
   /**
-   * The Xpath is split into segments using the '/' as a seperator. However
+   * The Xpath is split into segments using the '/' as a separator. However
    * this method deals with special cases where there is a slash '/' character
    * inside the attribute value e.g. x/@html='text/html'. We split by '/' but 
    * then reassemble things were the '/' appears within a quoted sub-string.
    *
-   * We have already enforced that the string must begin with a seperator. This
+   * We have already enforced that the string must begin with a separator. This
    * method depends heavily on how split behaves if the string starts with the
-   * seperator or if a sequence of multiple seperator's appear. 
+   * separator or if a sequence of multiple separator's appear. 
    */
   private static List<String> splitEscapeQuote(String str) {
     List<String> result = new LinkedList<>();
     String[] ss = str.split("/");
-    for (int i=0; i<ss.length; i++) { // i=1: skip seperator at start of string
+    for (int i=0; i<ss.length; i++) { // i=1: skip separator at start of string
       StringBuilder sb = new StringBuilder();
       int quoteCount = 0;
       while (true) {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java
index 354bd3c..cc802b8 100644
--- a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java
+++ b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java
@@ -44,7 +44,7 @@ public class CSVConfig {
     private int fill;
     /** The fill char. Defaults to a space */
     private char fillChar = ' ';
-    /** The seperator character. Defaults to , */
+    /** The separator character. Defaults to , */
     private char delimiter = ',';
     /** Should we ignore the delimiter. Defaults to false */
     private boolean ignoreDelimiter = false;

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java
b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java
index 26c8e3f..d0577ff 100644
--- a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java
+++ b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java
@@ -107,7 +107,7 @@ public class CSVConfigGuesser {
     
     protected void analyseLines(String[] lines) {
         guessFixedWidth(lines);
-        guessFieldSeperator(lines);
+        guessFieldSeparator(lines);
     }
     
     /**
@@ -130,16 +130,16 @@ public class CSVConfigGuesser {
     }
         
 
-    protected void guessFieldSeperator(String[] lines) {
+    protected void guessFieldSeparator(String[] lines) {
         if (config.isFixedWidth()) {
-            guessFixedWidthSeperator(lines);
+            guessFixedWidthSeparator(lines);
             return;
         }
         for (int i = 0; i < lines.length; i++) {
         }
     }
     
-    protected void guessFixedWidthSeperator(String[] lines) {
+    protected void guessFixedWidthSeparator(String[] lines) {
         // keep track of the fieldlength
         int previousMatch = -1;
         for (int i = 0; i < lines[0].length(); i++) {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java b/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java
index 140fd7e..492765a 100644
--- a/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java
@@ -384,7 +384,7 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {
             params.add("id",id);
           }
         } else {
-          // add one or more comma seperated ids params
+          // add one or more comma separated ids params
           params.add(buildCommaSepParams(random(), "ids", idsToRequest));
         }
       }
@@ -941,7 +941,7 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {
   }
 
   /**
-   * Given an ordered list of values to include in a (key) param, randomly groups them (ie:
comma seperated) 
+   * Given an ordered list of values to include in a (key) param, randomly groups them (ie:
comma separated) 
    * into actual param key=values which are returned as a new SolrParams instance
    */
   private static SolrParams buildCommaSepParams(final Random rand, final String key, Collection<String>
values) {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java
index af3dc83..5447267 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java
@@ -932,7 +932,7 @@ public class ZkStateReader implements Closeable {
   public static String getBaseUrlForNodeName(final String nodeName, String urlScheme) {
     final int _offset = nodeName.indexOf("_");
     if (_offset < 0) {
-      throw new IllegalArgumentException("nodeName does not contain expected '_' seperator:
" + nodeName);
+      throw new IllegalArgumentException("nodeName does not contain expected '_' separator:
" + nodeName);
     }
     final String hostAndPort = nodeName.substring(0,_offset);
     try {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java b/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
index b9766fb..4dafd39 100644
--- a/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
@@ -501,7 +501,7 @@ public class JsonRecordReader {
    * <p>
    * We have already enforced that the string must begin with a separator. This
    * method depends heavily on how split behaves if the string starts with the
-   * seperator or if a sequence of multiple separators appear.
+   * separator or if a sequence of multiple separators appear.
    */
   private static List<String> splitEscapeQuote(String str) {
     List<String> result = new LinkedList<>();

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/294692ca/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
index 7313597..a20c6e2 100644
--- a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
@@ -297,7 +297,7 @@ public class StrUtils {
 
   /**
    * writes chars from item to out, backslash escaping as needed based on separator -- 
-   * but does not append the seperator itself
+   * but does not append the separator itself
    */
   public static void appendEscapedTextToBuilder(StringBuilder out, 
                                                  String item, 


Mime
View raw message