Interface InputDocument
- All Known Implementing Classes:
DefaultSolrInputDocument,DefaultSolrPartialUpdateInputDocument
public interface InputDocument
This interface represents a document to be indexed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(IndexedProperty indexedProperty, Object value) Same asaddField(IndexedProperty, Object, String)with implied null value for the qualifier.voidaddField(IndexedProperty indexedProperty, Object value, String qualifier) Adds a field for the given indexed property, value and qualifier.voidAdds a field with the given name and value.Get collection of field namesgetFieldValue(String fieldName) Gets the value for a certain field name.
-
Method Details
-
addField
Adds a field with the given name and value. If a field with the same name already exists, then the given value is appended to the value of that field. If the value is a collection, then each of its values will be added to the field.- Parameters:
fieldName- - the field namevalue- - the field value- Throws:
FieldValueProviderException
-
addField
Same asaddField(IndexedProperty, Object, String)with implied null value for the qualifier.- Parameters:
indexedProperty- - the indexed propertyvalue- - the field value- Throws:
FieldValueProviderException- See Also:
-
addField
void addField(IndexedProperty indexedProperty, Object value, String qualifier) throws FieldValueProviderException Adds a field for the given indexed property, value and qualifier. If a field for the same indexed property and qualifier already exists, then the given value is appended to the value of that field. If the value is a collection, then each of its values will be added to the field.- Parameters:
indexedProperty- - the indexed propertyvalue- - the field valuequalifier- - the qualifier- Throws:
FieldValueProviderException
-
getFieldValue
Gets the value for a certain field name.- Parameters:
fieldName- - the field name- Returns:
- the field value.
-
getFieldNames
Collection<String> getFieldNames()Get collection of field names- Returns:
- field name collection
-