Class GenericField
java.lang.Object
net.ontopia.infoset.fulltext.core.GenericField
- All Implemented Interfaces:
FieldIF
INTERNAL: A generic document field.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericField(String name, Reader value, boolean store, boolean index, boolean tokenize) GenericField(String name, String value, boolean store, boolean index, boolean tokenize) -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldIFcreateKeywordField(String name, String value) static FieldIFcreateTextField(String name, String value) static FieldIFcreateUnstoredField(String name, Reader reader) static FieldIFcreateUnstoredField(String name, String value) getName()INTERNAL: Returns the name of the field.INTERNAL: Returns the Reader value of the field.getValue()INTERNAL: Returns the String value of the field.booleanINTERNAL: Returns true if the field is to be indexed, so that it may be searched on.booleanisStored()INTERNAL: Returns true if the field is to be stored in the index for return with search hits.booleanINTERNAL: Returns true if the field is to be tokenized prior to indexing.
-
Field Details
-
name
-
value
-
reader
-
store
protected boolean store -
index
protected boolean index -
tokenize
protected boolean tokenize
-
-
Constructor Details
-
GenericField
-
GenericField
-
-
Method Details
-
createUnstoredField
-
createUnstoredField
-
createKeywordField
-
createTextField
-
getName
Description copied from interface:FieldIFINTERNAL: Returns the name of the field. -
getValue
Description copied from interface:FieldIFINTERNAL: Returns the String value of the field. Note that null is returned if the field has a reader set. -
getReader
Description copied from interface:FieldIFINTERNAL: Returns the Reader value of the field. Note that null is returned if the field has a value set. -
isStored
public boolean isStored()Description copied from interface:FieldIFINTERNAL: Returns true if the field is to be stored in the index for return with search hits. -
isIndexed
public boolean isIndexed()Description copied from interface:FieldIFINTERNAL: Returns true if the field is to be indexed, so that it may be searched on. -
isTokenized
public boolean isTokenized()Description copied from interface:FieldIFINTERNAL: Returns true if the field is to be tokenized prior to indexing.- Specified by:
isTokenizedin interfaceFieldIF
-