public class RdfXmlSubprocessor extends Object implements IDocumentSubprocessor
| Constructor and Description |
|---|
RdfXmlSubprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(String formatId)
Returns true if subprocessor should be run against object
|
List<ISolrDataField> |
getFieldList() |
List<String> |
getFieldsToMerge() |
List<String> |
getMatchDocuments() |
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 |
setFieldList(List<ISolrDataField> fieldList) |
void |
setFieldsToMerge(List<String> fieldsToMerge) |
void |
setMatchDocuments(List<String> matchDocuments) |
public boolean canProcess(String formatId)
canProcess in interface IDocumentSubprocessorformatId - the the document to be processedpublic List<ISolrDataField> getFieldList()
public void setFieldList(List<ISolrDataField> fieldList)
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 SolrDoc mergeWithIndexedDocument(SolrDoc indexDocument) throws IOException, org.apache.commons.codec.EncoderException, XPathExpressionException
mergeWithIndexedDocument in interface IDocumentSubprocessorIOExceptionorg.apache.commons.codec.EncoderExceptionXPathExpressionExceptionCopyright © 2022. All rights reserved.