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 ContentTypesHelperThe content types helper.protected ContentTypeExtensionPointThe content type extension point.protected SearchUIModelExtensionPointThe search model helper.protected SystemPropertyExtensionPointThe extension point for system propertiesstatic final StringThe component role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllContentTypeIndexingFields(String language) Get all the content types and their indexing fields.getCommonAncestors(Collection<String> contentTypes) Get content types' common ancestors.getCommonFields(String language) Get the common fields.voidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
getAllContentTypeIndexingFields
Get all the content types and their indexing fields.- Parameters:
language- the query language (because string field names are language-dependent).- Returns:
- the content types and their metadatas.
-
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.
-