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 IDocumentSubprocessorindexDocument - IOExceptionorg.apache.commons.codec.EncoderExceptionXPathExpressionExceptionpublic Map<String,SolrDoc> processDocument(String identifier, Map<String,SolrDoc> docs, InputStream is) throws XPathExpressionException, IOException, org.apache.commons.codec.EncoderException
processDocument in interface IDocumentSubprocessoridentifier - id of original document in Map docsdocs - Documents indexed by identifiersis - original document streamXPathExpressionExceptionIOExceptionorg.apache.commons.codec.EncoderExceptionpublic boolean canProcess(String formatId)
IDocumentSubprocessorcanProcess in interface IDocumentSubprocessorformatId - for the object being testedCopyright © 2022. All rights reserved.