Class GenericField
- java.lang.Object
-
- net.ontopia.infoset.fulltext.core.GenericField
-
-
Constructor Summary
Constructors Constructor Description GenericField(String name, Reader value, boolean store, boolean index, boolean tokenize)
GenericField(String name, String value, boolean store, boolean index, boolean tokenize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldIF
createKeywordField(String name, String value)
static FieldIF
createTextField(String name, String value)
static FieldIF
createUnstoredField(String name, Reader reader)
static FieldIF
createUnstoredField(String name, String value)
String
getName()
INTERNAL: Returns the name of the field.Reader
getReader()
INTERNAL: Returns the Reader value of the field.String
getValue()
INTERNAL: Returns the String value of the field.boolean
isIndexed()
INTERNAL: Returns true if the field is to be indexed, so that it may be searched on.boolean
isStored()
INTERNAL: Returns true if the field is to be stored in the index for return with search hits.boolean
isTokenized()
INTERNAL: Returns true if the field is to be tokenized prior to indexing.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:FieldIF
INTERNAL: Returns the name of the field.
-
getValue
public String getValue()
Description copied from interface:FieldIF
INTERNAL: Returns the String value of the field. Note that null is returned if the field has a reader set.
-
getReader
public Reader getReader()
Description copied from interface:FieldIF
INTERNAL: 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:FieldIF
INTERNAL: 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:FieldIF
INTERNAL: Returns true if the field is to be indexed, so that it may be searched on.
-
isTokenized
public boolean isTokenized()
Description copied from interface:FieldIF
INTERNAL: Returns true if the field is to be tokenized prior to indexing.- Specified by:
isTokenized
in interfaceFieldIF
-
-