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
Modifier and TypeFieldDescriptionprotected GetQueryFromJSONHelper
the helper to get query infos from JSONprotected ServerCommHelper
The server comm helperFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager smanager) protected void
setFacets
(Map<String, Object> queryResults, Collection<SearchUICriterion> 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:
service
in interfaceServiceable
- Overrides:
service
in 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<SearchUICriterion> facetedCriteria) Set the facet list into the query results.- Parameters:
queryResults
- the query results.facetedCriteria
- the facets to put in the results.
-