Package org.ametys.cms.search.solr
Class GetSolrQueryAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.cms.search.solr.GetSolrQueryAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,Action
Get a solr query string from a search tool.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GetQueryFromJSONHelperthe helper to get query infos from JSONprotected ServerCommHelperThe server comm helperFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) voidservice(ServiceManager smanager) protected voidsetFacets(Map<String, Object> queryResults, Collection<? extends SearchCriterion> facetedCriteria) Set the facet list into the query results.Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_serverCommHelper
The server comm helper -
_getQueryFromJSONHelper
the helper to get query infos from JSON
-
-
Constructor Details
-
GetSolrQueryAction
public GetSolrQueryAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
setFacets
protected void setFacets(Map<String, Object> queryResults, Collection<? extends SearchCriterion> facetedCriteria) Set the facet list into the query results.- Parameters:
queryResults- the query results.facetedCriteria- the facets to put in the results.
-