Class DefaultSolrPartialUpdateInputDocument
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrInputDocument
-
- de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrPartialUpdateInputDocument
-
- All Implemented Interfaces:
InputDocument
public class DefaultSolrPartialUpdateInputDocument extends DefaultSolrInputDocument
Implementation ofIndexerQueryContextfor partial updates.
-
-
Constructor Summary
Constructors Constructor Description DefaultSolrPartialUpdateInputDocument(org.apache.solr.common.SolrInputDocument delegate, IndexerBatchContext batchContext, FieldNameProvider fieldNameProvider, RangeNameProvider rangeNameProvider, java.util.Set<java.lang.String> indexedFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(java.lang.String fieldName, java.lang.Object value)Adds a field with the given name and value.protected voidendDocument()java.lang.ObjectgetFieldValue(java.lang.String fieldName)Gets the value for a certain field name.java.util.Set<java.lang.String>getIndexedFields()java.util.Set<java.lang.String>getNotUpdatedIndexedFields()protected voidstartDocument()-
Methods inherited from class de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrInputDocument
addField, addField, getBatchContext, getDelegate, getFieldNameProvider, getFieldNames, getRangeNameProvider
-
-
-
-
Constructor Detail
-
DefaultSolrPartialUpdateInputDocument
public DefaultSolrPartialUpdateInputDocument(org.apache.solr.common.SolrInputDocument delegate, IndexerBatchContext batchContext, FieldNameProvider fieldNameProvider, RangeNameProvider rangeNameProvider, java.util.Set<java.lang.String> indexedFields)
-
-
Method Detail
-
getIndexedFields
public java.util.Set<java.lang.String> getIndexedFields()
-
getNotUpdatedIndexedFields
public java.util.Set<java.lang.String> getNotUpdatedIndexedFields()
-
addField
public void addField(java.lang.String fieldName, java.lang.Object value) throws FieldValueProviderExceptionDescription copied from interface:InputDocumentAdds 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.- Specified by:
addFieldin interfaceInputDocument- Overrides:
addFieldin classDefaultSolrInputDocument- Parameters:
fieldName- - the field namevalue- - the field value- Throws:
FieldValueProviderException
-
getFieldValue
public java.lang.Object getFieldValue(java.lang.String fieldName)
Description copied from interface:InputDocumentGets the value for a certain field name.- Specified by:
getFieldValuein interfaceInputDocument- Overrides:
getFieldValuein classDefaultSolrInputDocument- Parameters:
fieldName- - the field name- Returns:
- the field value.
-
startDocument
protected void startDocument()
- Overrides:
startDocumentin classDefaultSolrInputDocument
-
endDocument
protected void endDocument()
- Overrides:
endDocumentin classDefaultSolrInputDocument
-
-