public class RemoteAnnotatorSubprocessor extends Object implements IDocumentSubprocessor
| Constructor and Description |
|---|
RemoteAnnotatorSubprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(String formatId)
Determines if subprocessor should be run on document
|
protected Map<String,Set<String>> |
expandConcepts(String uri) |
List<ISolrDataField> |
getFieldList() |
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) |
public List<ISolrDataField> getFieldList()
public void setFieldList(List<ISolrDataField> fieldList)
public boolean canProcess(String formatId)
IDocumentSubprocessorcanProcess in interface IDocumentSubprocessorformatId - for the object being testedpublic 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 streamExceptionprotected Map<String,Set<String>> expandConcepts(String uri) throws Exception
Exceptionpublic SolrDoc mergeWithIndexedDocument(SolrDoc indexDocument) throws IOException, org.apache.commons.codec.EncoderException, XPathExpressionException
mergeWithIndexedDocument in interface IDocumentSubprocessorIOExceptionorg.apache.commons.codec.EncoderExceptionXPathExpressionExceptionCopyright © 2022. All rights reserved.