lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject svn commit: r1726241 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/SimplePreAnalyzedParser.java
Date Fri, 22 Jan 2016 15:44:11 GMT
Author: sarowe
Date: Fri Jan 22 15:44:11 2016
New Revision: 1726241

URL: http://svn.apache.org/viewvc?rev=1726241&view=rev
Log:
Javadoc fixes

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/SimplePreAnalyzedParser.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/SimplePreAnalyzedParser.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/SimplePreAnalyzedParser.java?rev=1726241&r1=1726240&r2=1726241&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/SimplePreAnalyzedParser.java
(original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/SimplePreAnalyzedParser.java
Fri Jan 22 15:44:11 2016
@@ -76,9 +76,9 @@ import org.apache.solr.schema.PreAnalyze
  * e - token offset, end position (integer)
  * t - token type (string)
  * f - token flags (hexadecimal integer)
- * p - payload (bytes in hexadecimal format)
+ * p - payload (bytes in hexadecimal format; whitespace is ignored)
  * </pre>
- * Token positions are tracked and implicitly added to the token stream - 
+ * Token offsets are tracked and implicitly added to the token stream -
  * the start and end offsets consider only the term text and whitespace,
  * and exclude the space taken by token attributes.
  * <h2>Example token streams</h2>
@@ -92,9 +92,9 @@ import org.apache.solr.schema.PreAnalyze
  1 one  two   three 
   - version 1
   - stored: 'null'
-  - tok: '(term=one,startOffset=1,endOffset=4)'
-  - tok: '(term=two,startOffset=6,endOffset=9)'
-  - tok: '(term=three,startOffset=12,endOffset=17)'
+  - tok: '(term=one,startOffset=0,endOffset=3)'
+  - tok: '(term=two,startOffset=5,endOffset=8)'
+  - tok: '(term=three,startOffset=11,endOffset=16)'
 1 one,s=123,e=128,i=22  two three,s=20,e=22
   - version 1
   - stored: 'null'
@@ -163,7 +163,7 @@ public final class SimplePreAnalyzedPars
   
   private static final byte[] EMPTY_BYTES = new byte[0];
   
-  /** Utility method to convert byte array to a hex string. */
+  /** Utility method to convert a hex string to a byte array. */
   static byte[] hexToBytes(String hex) {
     if (hex == null) {
       return EMPTY_BYTES;



Mime
View raw message