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
IDocumentSubprocessor
processDocument
in interface IDocumentSubprocessor
identifier
- id of original document in Map docsdocs
- Documents indexed by identifiersis
- original document streamException
public boolean canProcess(String formatId)
IDocumentSubprocessor
canProcess
in interface IDocumentSubprocessor
formatId
- for the object being testedpublic SolrDoc mergeWithIndexedDocument(SolrDoc indexDocument) throws IOException, org.apache.commons.codec.EncoderException, XPathExpressionException
mergeWithIndexedDocument
in interface IDocumentSubprocessor
IOException
org.apache.commons.codec.EncoderException
XPathExpressionException
Copyright © 2022. All rights reserved.