public class ResourceMapSubprocessor extends Object implements IDocumentSubprocessor
Constructor and Description |
---|
ResourceMapSubprocessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcess(String formatId)
Determines if subprocessor should be run on document
|
List<String> |
getFieldsToMerge() |
List<String> |
getMatchDocuments() |
SolrDoc |
mergeWithIndexedDocument(SolrDoc indexDocument)
Merge updates with existing solr documents
|
Map<String,SolrDoc> |
processDocument(String identifier,
Map<String,SolrDoc> docs,
InputStream is)
Implements IDocumentSubprocessor.processDocument method.
|
void |
setFieldsToMerge(List<String> fieldsToMerge) |
void |
setMatchDocuments(List<String> matchDocuments) |
public SolrDoc mergeWithIndexedDocument(SolrDoc indexDocument) throws IOException, org.apache.commons.codec.EncoderException, XPathExpressionException
mergeWithIndexedDocument
in interface IDocumentSubprocessor
indexDocument
- IOException
org.apache.commons.codec.EncoderException
XPathExpressionException
public Map<String,SolrDoc> processDocument(String identifier, Map<String,SolrDoc> docs, InputStream is) throws XPathExpressionException, IOException, org.apache.commons.codec.EncoderException
processDocument
in interface IDocumentSubprocessor
identifier
- id of original document in Map docsdocs
- Documents indexed by identifiersis
- original document streamXPathExpressionException
IOException
org.apache.commons.codec.EncoderException
public boolean canProcess(String formatId)
IDocumentSubprocessor
canProcess
in interface IDocumentSubprocessor
formatId
- for the object being testedCopyright © 2022. All rights reserved.