You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/07/18 19:14:50 UTC
svn commit: r1147975 - in
/lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2:
Document.java NumericField.java
Author: mikemccand
Date: Mon Jul 18 17:14:49 2011
New Revision: 1147975
URL: http://svn.apache.org/viewvc?rev=1147975&view=rev
Log:
LUCENE-2308: fix javadocs
Modified:
lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/Document.java
lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/NumericField.java
Modified: lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/Document.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/Document.java?rev=1147975&r1=1147974&r2=1147975&view=diff
==============================================================================
--- lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/Document.java (original)
+++ lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/Document.java Mon Jul 18 17:14:49 2011
@@ -27,12 +27,12 @@ import org.apache.lucene.search.ScoreDoc
/** Documents are the unit of indexing and search.
*
* A Document is a set of fields. Each field has a name and a textual value.
- * A field may be {@link Fieldable#isStored() stored} with the document, in which
+ * A field may be {@link IndexableField#stored() stored} with the document, in which
* case it is returned with search hits on the document. Thus each document
* should typically contain one or more stored fields which uniquely identify
* it.
*
- * <p>Note that fields which are <i>not</i> {@link Fieldable#stored() stored} are
+ * <p>Note that fields which are <i>not</i> {@link IndexableField#stored() stored} are
* <i>not</i> available in documents retrieved from the index, e.g. with {@link
* ScoreDoc#doc} or {@link IndexReader#document(int)}.
*/
Modified: lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/NumericField.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/NumericField.java?rev=1147975&r1=1147974&r2=1147975&view=diff
==============================================================================
--- lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/NumericField.java (original)
+++ lucene/dev/branches/fieldtype/lucene/src/java/org/apache/lucene/document2/NumericField.java Mon Jul 18 17:14:49 2011
@@ -77,8 +77,8 @@ import org.apache.lucene.search.FieldCac
* <p>
* By default, a <code>NumericField</code>'s value is not stored but is indexed
* for range filtering and sorting. You can use the
- * {@link #NumericField(String,Field.Store,boolean)} constructor if you need to
- * change these defaults.
+ * {@link #NumericField(String,FieldType)} constructor if you need to
+ * change these defaults, and alter the default field type (set it to stored).
* </p>
*
* <p>
@@ -193,11 +193,11 @@ public final class NumericField extends
*
* @param name
* the field name
- * @param store
- * if the field should be stored, {@link Document#getFieldable} then
- * returns {@code NumericField} instances on search results.
- * @param index
- * if the field should be indexed using {@link NumericTokenStream}
+ * @param type
+ * if the defualt field should be altered, e.g. stored,
+ * {@link Document#getField} then returns {@code NumericField}
+ * instances on search results, or indexed using
+ * {@link NumericTokenStream}
*/
public NumericField(String name, FieldType type) {
this(name, NumericUtils.PRECISION_STEP_DEFAULT, type);
@@ -233,11 +233,11 @@ public final class NumericField extends
* the used <a
* href="../search/NumericRangeQuery.html#precisionStepDesc"
* >precision step</a>
- * @param store
- * if the field should be stored, {@link Document#getFieldable} then
- * returns {@code NumericField} instances on search results.
- * @param index
- * if the field should be indexed using {@link NumericTokenStream}
+ * @param type
+ * if the defualt field should be altered, e.g. stored,
+ * {@link Document#getField} then returns {@code NumericField}
+ * instances on search results, or indexed using
+ * {@link NumericTokenStream}
*/
public NumericField(String name, int precisionStep, FieldType type) {
super(name, type);
@@ -283,10 +283,9 @@ public final class NumericField extends
}
/**
- * Returns the numeric value as a string. This format is also returned if you
- * call {@link Document#get(String)} on search results. It is recommended to
- * use {@link Document#getFieldable} instead that returns {@code NumericField}
- * instances. You can then use {@link #getNumericValue} to return the stored
+ * Returns the numeric value as a string. It is recommended to
+ * use {@link Document#getField} instead that returns {@code NumericField}
+ * instances. You can then use {@link #numericValue} to return the stored
* value.
*/
@Override