public interface IndexDocument
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String name,
Object value)
Adds a field with the given name, value and boost.
|
IndexDocument |
deepCopy()
return a copy of index Document.
|
Throwable |
getError()
If there was an error building the document, it is described here.
|
IndexField |
getField(String field)
Gets the field.
|
Collection<String> |
getFieldNames()
Get all field names.
|
Object |
getFieldValue(String name)
Get the first value for a field.
|
Collection<Object> |
getFieldValues(String name)
Get all the values for a field.
|
Status |
getStatus()
Gets the status.
|
IndexField |
removeField(String name)
Remove a field from the document.
|
IndexDocument |
setError(Throwable error)
Sets the error.
|
void |
setField(String name,
Object value)
Set a field with implied null value for boost.
|
IndexDocument |
setMarked()
Sets the status marked to the index document.
|
IndexDocument |
setOK()
Sets the ok status to the index document.
|
IndexDocument |
setStatus(Status status)
The set status.
|
void addField(String name, Object value)
name - Name of the field, should match one of the field names defined under "fields" tag in schema.xml.value - Value of the field, should be of same class type as defined by "type" attribute of the corresponding field in schema.xml.void setField(String name, Object value)
name - name of the field to setvalue - value of the fieldObject getFieldValue(String name)
name - name of the field to fetchIndexField getField(String field)
field - the fieldIndexField removeField(String name)
name - The field name whose field is to be removed from the documentCollection<Object> getFieldValues(String name)
name - name of the field to fetchCollection<String> getFieldNames()
IndexDocument deepCopy()
Status getStatus()
IndexDocument setStatus(Status status)
status - the statusThrowable getError()
IndexDocument setError(Throwable error)
error - the errorIndexDocument setOK()
IndexDocument setMarked()
Copyright © 2019. All rights reserved.