StoredField
A field whose value is stored so that IndexSearcher.storedFields and IndexReader.storedFields will return the field and its value.
Constructors
Expert: allows you to customize the FieldType.
Create a stored-only field with the given binary value.
Create a stored-only field with the given binary value.
Create a stored-only field with the given binary value.
Create a stored-only field with the given data input value.
Create a stored-only field with the given string value.
Expert: allows you to customize the FieldType.
Expert: allows you to customize the FieldType.
Create a stored-only field with the given integer value.
Create a stored-only field with the given float value.
Create a stored-only field with the given long value.
Create a stored-only field with the given double value.
Functions
Non-null if this field has a binary value
Returns the FieldType for this field.
Describes how this field should be inverted. This must return a non-null value if the field indexes terms and postings.
Non-null if this field has a numeric value
The value of the field as a Reader, or null. If null, the String value or binary value is used. Exactly one of stringValue(), readerValue(), and binaryValue() must be set.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. See .setStringValue.
Expert: change the value of this field. This can be used during indexing to re-use a single Field instance to improve indexing speed by avoiding GC cost of new'ing and reclaiming Field instances. Typically a single Document instance is re-used as well. This helps most on small documents.
Expert: sets the token stream to be used for indexing.
Stored value. This method is called to populate stored fields and must return a non-null value if the field stored.
The value of the field as a String, or null. If null, the Reader value or binary value is used. Exactly one of stringValue(), readerValue(), and binaryValue() must be set.
Creates the TokenStream used for indexing this field. If appropriate, implementations should use the given Analyzer to create the TokenStreams.
The TokenStream for this field to be used when indexing, or null. If null, the Reader value or String value is analyzed to produce the indexed tokens.