StoredField
Expert: allows you to customize the FieldType.
NOTE: the provided byte[] is not copied so be sure not to change it until you're done with this field.
Parameters
field name
byte array pointing to binary content (not copied)
custom FieldType for this field
Throws
if the field name, value or type is null.
Create a stored-only field with the given binary value.
NOTE: the provided byte[] is not copied so be sure not to change it until you're done with this field.
Parameters
field name
byte array pointing to binary content (not copied)
Throws
if the field name or value is null.
Create a stored-only field with the given binary value.
NOTE: the provided byte[] is not copied so be sure not to change it until you're done with this field.
Parameters
field name
byte array pointing to binary content (not copied)
starting position of the byte array
valid length of the byte array
Throws
if the field name or value is null.
Create a stored-only field with the given binary value.
NOTE: the provided BytesRef is not copied so be sure not to change it until you're done with this field.
Parameters
field name
BytesRef pointing to binary content (not copied)
Throws
if the field name or value is null.
Create a stored-only field with the given data input value.
Parameters
field name
BytesRef pointing to binary content (not copied)
Throws
if the field name or value is null.
Create a stored-only field with the given string value.
Parameters
field name
string value
Throws
if the field name or value is null.
Expert: allows you to customize the FieldType.
Parameters
Throws
if the field name, value or type is null.
Expert: allows you to customize the FieldType.
Parameters
Throws
if the field name, value or type is null.
Create a stored-only field with the given integer value.
Parameters
field name
integer value
Throws
if the field name is null.
Create a stored-only field with the given float value.
Parameters
field name
float value
Throws
if the field name is null.
Create a stored-only field with the given long value.
Parameters
field name
long value
Throws
if the field name is null.
Create a stored-only field with the given double value.
Parameters
field name
double value
Throws
if the field name is null.