mirror of https://github.com/apache/lucene.git
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:
parent
f780f77366
commit
10fbc9814a
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue