Package org.ametys.cms.search.solr
Class SearcherFactory
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.search.solr.SearcherFactory
-
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
- Direct Known Subclasses:
FrontOfficeSearcherFactory
public class SearcherFactory extends AbstractLogEnabled implements Component, Serviceable, Initializable
Component searching objects corresponding to aQuery
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SearcherFactory.Searcher
Class searching objects corresponding to a query, with optional sort, facets, and so on.
-
Field Summary
Fields Modifier and Type Field Description protected CurrentUserProvider
_currentUserProvider
The current user provider.protected GroupManager
_groupManager
The group managerprotected AmetysObjectResolver
_resolver
protected org.apache.solr.client.solrj.SolrClient
_solrClient
The solr clientprotected SolrClientProvider
_solrClientProvider
The solr client providerstatic String
ROLE
The component role.
-
Constructor Summary
Constructors Constructor Description SearcherFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearcherFactory.Searcher
create()
Create a Searcher.void
initialize()
void
service(ServiceManager serviceManager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
-
_solrClientProvider
protected SolrClientProvider _solrClientProvider
The solr client provider
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
The current user provider.
-
_groupManager
protected GroupManager _groupManager
The group manager
-
_solrClient
protected org.apache.solr.client.solrj.SolrClient _solrClient
The solr client
-
-
Constructor Detail
-
SearcherFactory
public SearcherFactory()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
create
public SearcherFactory.Searcher create()
Create a Searcher.- Returns:
- a Searcher object.
-
-