Fix some JavaDoc errors in Numeric*

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-07-06 16:36:05 +00:00
parent f780f77366
commit 10fbc9814a
3 changed files with 8 additions and 8 deletions

View File

@ -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);
* <em>// use this code to index many documents:</em>
* stream.set<em>???</em>Value(value1)

View File

@ -50,12 +50,12 @@ import org.apache.lucene.search.FieldCache; // javadocs
* <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>

View File

@ -42,14 +42,14 @@ import org.apache.lucene.index.Term;
* 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>