public abstract class AbstractSolrSearchFetcher extends AbstractFetcher
Fetcher
implementation that uses Solr for searching content itemsmLogger
Constructor and Description |
---|
AbstractSolrSearchFetcher() |
Modifier and Type | Method and Description |
---|---|
protected abstract com.escenic.framework.search.solr.util.SolrQueryBuilder |
createQueryBuilder(SourceDefinition pSourceDefinition,
SourceSettings pSettings,
ContextInfo pContextInfo)
Creates an instance of
SolrQueryBuilder to be used for searching content in Solr |
List<ResultItem> |
fetch(SourceDefinition pSourceDefinition,
SourceSettings pSettings,
ContextInfo pContextInfo) |
com.escenic.framework.search.solr.SolrSearchEngine |
getSearchEngine() |
protected List<org.apache.solr.common.SolrDocument> |
getSearchResult(com.escenic.framework.search.solr.util.SolrQueryBuilder pSolrQueryBuilder) |
protected com.escenic.framework.search.solr.util.SolrQueryBuilder.SortOrder |
getSortOrder(String pSort) |
protected com.escenic.framework.search.solr.util.SolrQueryBuilder.SortType |
getSortType(String pSort) |
void |
setSearchEngine(com.escenic.framework.search.solr.SolrSearchEngine pSearchEngine) |
protected void |
startService() |
getDefaultContentTypes, getDefaultContentTypesAsList, getDefaultMaxItem, getObjectLoader, getPresentationLoader, getRelativeTimeInterval, resolveDateRange, resolvePublication, resolveSection, setDefaultContentTypes, setDefaultMaxItem, setObjectLoader, setRelativeTimeInterval, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
protected void startService() throws IllegalStateException, IllegalArgumentException, Exception
startService
in class AbstractFetcher
IllegalStateException
IllegalArgumentException
Exception
public List<ResultItem> fetch(SourceDefinition pSourceDefinition, SourceSettings pSettings, ContextInfo pContextInfo)
pSourceDefinition
- source definition as SourceDefinition
pSettings
- source settings as SourceSettings
pContextInfo
- the context infoprotected abstract com.escenic.framework.search.solr.util.SolrQueryBuilder createQueryBuilder(SourceDefinition pSourceDefinition, SourceSettings pSettings, ContextInfo pContextInfo)
SolrQueryBuilder
to be used for searching content in SolrpSourceDefinition
- the data source definitionpSettings
- the data source filter settingspContextInfo
- the context infoSolrQueryBuilder
to be used for searching in Solrprotected com.escenic.framework.search.solr.util.SolrQueryBuilder.SortOrder getSortOrder(String pSort)
protected com.escenic.framework.search.solr.util.SolrQueryBuilder.SortType getSortType(String pSort)
protected List<org.apache.solr.common.SolrDocument> getSearchResult(com.escenic.framework.search.solr.util.SolrQueryBuilder pSolrQueryBuilder)
public com.escenic.framework.search.solr.SolrSearchEngine getSearchEngine()
public void setSearchEngine(com.escenic.framework.search.solr.SolrSearchEngine pSearchEngine)
© 1998- 2018 Escenic AS