@Bindable(prefix="SolrDocumentSource") public class SolrDocumentSource extends RemoteXmlSimpleSearchEngineBase
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FIELD_MAPPING |
String |
serviceUrlBase
Solr service URL base.
|
String |
solrSummaryFieldName
Summary field name.
|
String |
solrTitleFieldName
Title field name.
|
String |
solrUrlFieldName
URL field name.
|
compressed, documents, POSTPROCESSING, query, results, resultsTotal, SERVICE, start, statistics| Constructor and Description |
|---|
SolrDocumentSource() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildServiceUrl()
Builds the URL from which XML stream will be fetched.
|
protected Map<String,String> |
getXsltParameters()
Returns parameters to be passed to the XSLT transformer.
|
protected IResource |
getXsltResource()
Returns the XSLT stylesheet that transforms the custom XML into Carrot2 compliant
XML.
|
beforeProcessing, fetchSearchResponse, getPassword, getUser, initprocessafterFetch, clean, urlEncodeafterProcessing, dispose, getContext, getSharedExecutorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterProcessing, disposeprotected static final String FIELD_MAPPING
@Input @Processing @Attribute @Label(value="Service URL") @Level(value=ADVANCED) @Group(value="Service") public String serviceUrlBase
@Input @Processing @Attribute @Label(value="Title field name") @Level(value=MEDIUM) @Group(value="Index field mapping") public String solrTitleFieldName
@Input @Processing @Attribute @Label(value="Summary field name") @Level(value=MEDIUM) @Group(value="Index field mapping") public String solrSummaryFieldName
@Input @Processing @Attribute @Label(value="URL field name") @Level(value=MEDIUM) @Group(value="Index field mapping") public String solrUrlFieldName
protected String buildServiceUrl()
RemoteXmlSimpleSearchEngineBasebuildServiceUrl in class RemoteXmlSimpleSearchEngineBaseprotected IResource getXsltResource()
RemoteXmlSimpleSearchEngineBasegetXsltResource in class RemoteXmlSimpleSearchEngineBaseprotected Map<String,String> getXsltParameters()
RemoteXmlSimpleSearchEngineBasenull.getXsltParameters in class RemoteXmlSimpleSearchEngineBase