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 a
Query
.-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Class searching objects corresponding to a query, with optional sort, facets, and so on. -
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user provider.protected GroupManager
The group managerprotected AmetysObjectResolver
protected org.apache.solr.client.solrj.SolrClient
The solr clientprotected SolrClientProvider
The solr client providerstatic final String
The component role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a Searcher.void
void
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The component role. -
_resolver
-
_solrClientProvider
The solr client provider -
_currentUserProvider
The current user provider. -
_groupManager
The group manager -
_solrClient
The solr client
-
-
Constructor Details
-
SearcherFactory
public SearcherFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
create
Create a Searcher.- Returns:
- a Searcher object.
-