Modifier and Type | Field and Description |
---|---|
protected boolean |
index |
protected String |
name |
protected Reader |
reader |
protected boolean |
store |
protected boolean |
tokenize |
protected String |
value |
Constructor and Description |
---|
GenericField(String name,
Reader value,
boolean store,
boolean index,
boolean tokenize) |
GenericField(String name,
String value,
boolean store,
boolean index,
boolean tokenize) |
Modifier and Type | Method and 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.
|
protected String name
protected String value
protected Reader reader
protected boolean store
protected boolean index
protected boolean tokenize
public GenericField(String name, String value, boolean store, boolean index, boolean tokenize)
public String getName()
FieldIF
public String getValue()
FieldIF
public Reader getReader()
FieldIF
public boolean isStored()
FieldIF
public boolean isIndexed()
FieldIF
public boolean isTokenized()
FieldIF
isTokenized
in interface FieldIF