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 TypeClassDescriptionstatic final recordRecord representing a facet definition.static final recordRecord representing the highlighting parameters.classClass searching objects corresponding to a query, with optional sort, facets, and so on.static final recordRecord representing a sort criterion. -
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 intThe default count for highlight snippetstatic final intThe default size for highlight snippetstatic 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. -
DEFAULT_HIGHLIGHT_SNIPPET_SIZE
The default size for highlight snippet- See Also:
-
DEFAULT_HIGHLIGHT_SNIPPET_COUNT
The default count for highlight snippet- See Also:
-
_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.
-