lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r791535 - in /lucene/java/trunk/src/java/org/apache/lucene: analysis/NumericTokenStream.java document/NumericField.java search/NumericRangeQuery.java
Date Mon, 06 Jul 2009 16:36:05 GMT
Author: uschindler
Date: Mon Jul  6 16:36:05 2009
New Revision: 791535

URL: http://svn.apache.org/viewvc?rev=791535&view=rev
Log:
Fix some JavaDoc errors in Numeric*

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/NumericTokenStream.java
    lucene/java/trunk/src/java/org/apache/lucene/document/NumericField.java
    lucene/java/trunk/src/java/org/apache/lucene/search/NumericRangeQuery.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/NumericTokenStream.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/NumericTokenStream.java?rev=791535&r1=791534&r2=791535&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/NumericTokenStream.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/NumericTokenStream.java Mon Jul
 6 16:36:05 2009
@@ -62,7 +62,7 @@
  *  Field field = new Field(name, stream);
  *  field.setOmitNorms(true);
  *  field.setOmitTermFreqAndPositions(true);
- *  Document doc = new Document();
+ *  Document document = new Document();
  *  document.add(field);
  *  <em>// use this code to index many documents:</em>
  *  stream.set<em>???</em>Value(value1)

Modified: lucene/java/trunk/src/java/org/apache/lucene/document/NumericField.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/document/NumericField.java?rev=791535&r1=791534&r2=791535&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/document/NumericField.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/document/NumericField.java Mon Jul  6 16:36:05
2009
@@ -50,12 +50,12 @@
  * <pre>
  *  <em>// init</em>
  *  NumericField field = new NumericField(name, precisionStep, Field.Store.XXX, true);
- *  Document doc = new Document();
+ *  Document document = new Document();
  *  document.add(field);
  *  <em>// use this code to index many documents:</em>
- *  stream.set<em>???</em>Value(value1)
+ *  field.set<em>???</em>Value(value1)
  *  writer.addDocument(document);
- *  stream.set<em>???</em>Value(value2)
+ *  field.set<em>???</em>Value(value2)
  *  writer.addDocument(document);
  *  ...
  * </pre>

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/NumericRangeQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/NumericRangeQuery.java?rev=791535&r1=791534&r2=791535&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/NumericRangeQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/NumericRangeQuery.java Mon Jul  6
16:36:05 2009
@@ -42,14 +42,14 @@
  * For code examples see {@link NumericField}.
  *
  * <h4>Searching</h4>
- * <p>This class has no constructor, you can create filters depending on the data type
+ * <p>This class has no constructor, you can create queries depending on the data type
  * by using the static factories {@linkplain #newLongRange NumericRangeQuery.newLongRange()},
  * {@linkplain #newIntRange NumericRangeQuery.newIntRange()}, {@linkplain #newDoubleRange
NumericRangeQuery.newDoubleRange()},
  * and {@linkplain #newFloatRange NumericRangeQuery.newFloatRange()}, e.g.:
  * <pre>
- * Filter f = NumericRangeQuery.newFloatRange(field, <a href="#precisionStepDesc">precisionStep</a>,
- *                                            new Float(0.3f), new Float(0.10f),
- *                                            true, true);
+ * Query q = NumericRangeQuery.newFloatRange(field, <a href="#precisionStepDesc">precisionStep</a>,
+ *                                           new Float(0.3f), new Float(0.10f),
+ *                                           true, true);
  * </pre>
  *
  * <h3>How it works</h3>



Mime
View raw message