Package org.ametys.cms.search.solr
Class SolrQueryHelper
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.search.solr.SolrQueryHelper
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
Helper for solr query editor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypesHelper
The content types helper.protected ContentTypeExtensionPoint
The content type extension point.protected SearchUIModelExtensionPoint
The search model helper.protected SystemPropertyExtensionPoint
The extension point for system propertiesstatic final String
The component role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllContentTypeModelItems
(String language) Get all the content types and their model items.getCommonAncestors
(Collection<String> contentTypes) Get content types' common ancestors.getCommonFields
(String language) Get the common fields.void
service
(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The component role. -
_cTypeEP
The content type extension point. -
_contentTypesHelper
The content types helper. -
_searchModelManager
The search model helper. -
_systemPropertyEP
The extension point for system properties
-
-
Constructor Details
-
SolrQueryHelper
public SolrQueryHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAllContentTypeModelItems
Get all the content types and their model items.- Parameters:
language
- the query language (because string field names are language-dependent).- Returns:
- the content types and their model items.
-
getCommonAncestors
Get content types' common ancestors.- Parameters:
contentTypes
- The content types.- Returns:
- a Map with the common ancestors
-
getCommonFields
Get the common fields.- Parameters:
language
- the query language (because string field names are language-dependent).- Returns:
- the common fields.
-