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 IDocumentSubprocessor
formatId
- 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
IDocumentSubprocessor
processDocument
in interface IDocumentSubprocessor
identifier
- id of original document in Map docsdocs
- Documents indexed by identifiersis
- original document streamException
public 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.