Example usage for Java org.apache.lucene.document StringField fields, constructors, methods, implement or subclass
The text is from its open source code.
FieldType | TYPE_NOT_STORED Indexed, not tokenized, omits norms, indexes DOCS_ONLY, not stored. |
FieldType | TYPE_STORED Indexed, not tokenized, omits norms, indexes DOCS_ONLY, stored |
StringField(String name, String value, Store stored) Creates a new textual StringField, indexing the provided String value as a single token. | |
StringField(String name, BytesRef value, Store stored) Creates a new binary StringField, indexing the provided binary (BytesRef) value as a single token. |
IndexableFieldType | fieldType() Returns the FieldType for this field. |
void | setStringValue(String value) Expert: change the value of this field. |
String | stringValue() The value of the field as a String, or null. |