public class BaseReprocessSubprocessor extends Object implements IDocumentSubprocessor
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
BaseReprocessSubprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(String formatId)
Determines if subprocessor should be run on document
|
List<String> |
getRelationFields() |
SolrDoc |
mergeWithIndexedDocument(SolrDoc indexDocument) |
Map<String,SolrDoc> |
processDocument(String identifier,
Map<String,SolrDoc> docs,
InputStream is)
Method allows for manipulation of indexed fields that should be added to solr index
|
void |
setRelationFields(List<String> relationFields) |
public Map<String,SolrDoc> processDocument(String identifier, Map<String,SolrDoc> docs, InputStream is) throws Exception
IDocumentSubprocessorprocessDocument in interface IDocumentSubprocessoridentifier - id of original document in Map docsdocs - Documents indexed by identifiersis - original document streamExceptionpublic boolean canProcess(String formatId)
IDocumentSubprocessorcanProcess in interface IDocumentSubprocessorformatId - for the object being testedpublic SolrDoc mergeWithIndexedDocument(SolrDoc indexDocument) throws IOException, org.apache.commons.codec.EncoderException, XPathExpressionException
mergeWithIndexedDocument in interface IDocumentSubprocessorIOExceptionorg.apache.commons.codec.EncoderExceptionXPathExpressionExceptionCopyright © 2022. All rights reserved.