public class SolrQuerySearchAction extends SearchAction
| Modifier and Type | Field and Description |
|---|---|
protected ContentTypesHelper |
_contentTypesHelper
The content types helper.
|
_contentTypeExtensionPoint, _context, _getQueryFromJSONHelper, _queryBuilder, _searcherFactory, _searchModelManager, _serverCommHelper, QUERY_ERROR, SEARCH_CONTENTS, SEARCH_LOCALE, SEARCH_MODEL, SEARCH_RESULTSmanagerEMPTY_MAP| Constructor and Description |
|---|
SolrQuerySearchAction() |
| Modifier and Type | Method and Description |
|---|---|
private static List<CriteriaSearchUIModelWrapper.Column> |
_getColumns(Stream<String> columns) |
private static String |
_leftTrim(String s) |
protected void |
doSearch(Request request,
SearchUIModel model,
int offset,
int maxResults,
Map<String,Object> jsParameters,
Map<String,Object> contextualParameters)
Do the search and set the results in request attributes.
|
static List<CriteriaSearchUIModelWrapper.Column> |
getColumns(List<String> columns)
From a list of string representing columns, returns the list of column ids with their (optional) labels.
|
static List<CriteriaSearchUIModelWrapper.Column> |
getColumns(String columnsStr)
From a string representing columns, returns the list of column ids with their (optional) labels.
|
void |
service(ServiceManager serviceManager)
The searcher
|
act, contextualize, getMaxResults, getOffset, getSearchUIModel, getSortenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected ContentTypesHelper _contentTypesHelper
public SolrQuerySearchAction()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class SearchActionServiceExceptionprotected void doSearch(Request request, SearchUIModel model, int offset, int maxResults, Map<String,Object> jsParameters, Map<String,Object> contextualParameters) throws Exception
SearchActiondoSearch in class SearchActionrequest - The request. The results or contents' id have to be set in request attributesmodel - The search UI modeloffset - The index of searchmaxResults - The max resultsjsParameters - The JS parameterscontextualParameters - The contextual parametersException - if the search failedpublic static List<CriteriaSearchUIModelWrapper.Column> getColumns(String columnsStr)
columnsStr - The columns as a stringpublic static List<CriteriaSearchUIModelWrapper.Column> getColumns(List<String> columns)
columns - The columnsprivate static List<CriteriaSearchUIModelWrapper.Column> _getColumns(Stream<String> columns)