public class SolrQueryHelper extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected ContentTypesHelper |
_contentTypesHelper
The content types helper.
|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point.
|
protected SearchUIModelExtensionPoint |
_searchModelManager
The search model helper.
|
protected SystemPropertyExtensionPoint |
_systemPropertyEP
The extension point for system properties
|
static String |
ROLE
The component role.
|
Constructor and Description |
---|
SolrQueryHelper() |
Modifier and Type | Method and Description |
---|---|
private boolean |
_isFacetable(MetadataDefinition metaDef) |
private void |
_putCompositeMetadata(Map<String,Object> properties,
MetadataDefinition metaDef,
String cTypeId,
String language) |
private void |
_putContentType(Map<String,Object> contentTypes,
ContentType contentType,
String language) |
private void |
_putIndexingField(Map<String,Object> metadata,
IndexingField field,
String language) |
private void |
_putMetadataIndexingField(Map<String,Object> fields,
String name,
MetadataDefinition metaDef,
String cTypeId,
String language) |
private void |
_putReferenceField(Map<String,Object> fields,
String name,
String refField,
String refCTypeId) |
private void |
_putSimpleMetadata(Map<String,Object> properties,
MetadataDefinition metaDef,
String language) |
private void |
_putTitleMetadata(Map<String,Object> systemProps,
String language) |
Map<String,Object> |
getAllContentTypeIndexingFields(String language)
Get all the content types and their indexing fields.
|
Map<String,Object> |
getCommonAncestor(Collection<String> contentTypes)
Get content types' common ancestor.
|
Map<String,Object> |
getCommonFields(String language)
Get the common fields.
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected ContentTypeExtensionPoint _cTypeEP
protected ContentTypesHelper _contentTypesHelper
protected SearchUIModelExtensionPoint _searchModelManager
protected SystemPropertyExtensionPoint _systemPropertyEP
public SolrQueryHelper()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<String,Object> getAllContentTypeIndexingFields(String language)
language
- the query language (because string field names are language-dependent).private void _putContentType(Map<String,Object> contentTypes, ContentType contentType, String language)
private void _putIndexingField(Map<String,Object> metadata, IndexingField field, String language)
private void _putMetadataIndexingField(Map<String,Object> fields, String name, MetadataDefinition metaDef, String cTypeId, String language)
private void _putCompositeMetadata(Map<String,Object> properties, MetadataDefinition metaDef, String cTypeId, String language)
private void _putSimpleMetadata(Map<String,Object> properties, MetadataDefinition metaDef, String language)
private boolean _isFacetable(MetadataDefinition metaDef)
private void _putReferenceField(Map<String,Object> fields, String name, String refField, String refCTypeId)
public Map<String,Object> getCommonAncestor(Collection<String> contentTypes)
contentTypes
- The content types.public Map<String,Object> getCommonFields(String language)
language
- the query language (because string field names are language-dependent).private void _putTitleMetadata(Map<String,Object> systemProps, String language)