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
Nested ClassesModifier and TypeClassDescriptionclassClass searching objects corresponding to a query, with optional sort, facets, and so on. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe current user provider.protected GroupManagerThe group managerprotected AmetysObjectResolverprotected org.apache.solr.client.solrj.SolrClientThe solr clientprotected SolrClientProviderThe solr client providerstatic final StringThe component role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a Searcher.voidvoidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
create
Create a Searcher.- Returns:
- a Searcher object.
-