From 10fbc9814aaffb1ce1f341a6284e05a7620c74f6 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 6 Jul 2009 16:36:05 +0000 Subject: [PATCH] Fix some JavaDoc errors in Numeric* git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791535 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/analysis/NumericTokenStream.java | 2 +- src/java/org/apache/lucene/document/NumericField.java | 6 +++--- src/java/org/apache/lucene/search/NumericRangeQuery.java | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/java/org/apache/lucene/analysis/NumericTokenStream.java b/src/java/org/apache/lucene/analysis/NumericTokenStream.java index 3a6fb0855cf..1c0dcec984a 100644 --- a/src/java/org/apache/lucene/analysis/NumericTokenStream.java +++ b/src/java/org/apache/lucene/analysis/NumericTokenStream.java @@ -62,7 +62,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; * Field field = new Field(name, stream); * field.setOmitNorms(true); * field.setOmitTermFreqAndPositions(true); - * Document doc = new Document(); + * Document document = new Document(); * document.add(field); * // use this code to index many documents: * stream.set???Value(value1) diff --git a/src/java/org/apache/lucene/document/NumericField.java b/src/java/org/apache/lucene/document/NumericField.java index 0df1f1c62c8..1ae36c0c8a8 100644 --- a/src/java/org/apache/lucene/document/NumericField.java +++ b/src/java/org/apache/lucene/document/NumericField.java @@ -50,12 +50,12 @@ import org.apache.lucene.search.FieldCache; // javadocs *
  *  // init
  *  NumericField field = new NumericField(name, precisionStep, Field.Store.XXX, true);
- *  Document doc = new Document();
+ *  Document document = new Document();
  *  document.add(field);
  *  // use this code to index many documents:
- *  stream.set???Value(value1)
+ *  field.set???Value(value1)
  *  writer.addDocument(document);
- *  stream.set???Value(value2)
+ *  field.set???Value(value2)
  *  writer.addDocument(document);
  *  ...
  * 
diff --git a/src/java/org/apache/lucene/search/NumericRangeQuery.java b/src/java/org/apache/lucene/search/NumericRangeQuery.java index e78912ebf19..dfdc32f1572 100644 --- a/src/java/org/apache/lucene/search/NumericRangeQuery.java +++ b/src/java/org/apache/lucene/search/NumericRangeQuery.java @@ -42,14 +42,14 @@ import org.apache.lucene.index.Term; * For code examples see {@link NumericField}. * *

Searching

- *

This class has no constructor, you can create filters depending on the data type + *

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.: *

- * Filter f = NumericRangeQuery.newFloatRange(field, precisionStep,
- *                                            new Float(0.3f), new Float(0.10f),
- *                                            true, true);
+ * Query q = NumericRangeQuery.newFloatRange(field, precisionStep,
+ *                                           new Float(0.3f), new Float(0.10f),
+ *                                           true, true);
  * 
* *

How it works