public class CmsSolrDocumentContainerPage extends CmsSolrDocumentXmlContent
CmsResourceTypeContainerPage.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_CONTAINERPAGE_SOLR
The solr document type name for xml-contents.
|
MAPPING_GALLERY_DESCRIPTION, MAPPING_GALLERY_NAME, TYPE_XMLCONTENT_SOLRm_name| Constructor and Description |
|---|
CmsSolrDocumentContainerPage(java.lang.String name)
Creates a new instance of this lucene document factory.
|
| Modifier and Type | Method and Description |
|---|---|
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
I_CmsSearchIndex index)
Returns the raw text content of a VFS resource of type
CmsResourceTypeContainerPage. |
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
I_CmsSearchIndex index,
java.util.Locale forceLocale)
Extracts the content of a given index resource according to the resource file type and the
configuration of the given index.
|
boolean |
isLocaleDependend()
Solr index content is stored in multiple languages, so the result is NOT locale dependent.
|
boolean |
isUsingCache()
Returns
true if result caching is supported for this factory. |
collectSchemaXpathsForSimpleValues, extractXmlContent, extractXmlContent, getDocumentKeyscreateDocument, getCache, getDocumentKey, getName, logContentExtraction, readFile, setCachepublic static final java.lang.String TYPE_CONTAINERPAGE_SOLR
public CmsSolrDocumentContainerPage(java.lang.String name)
name - name of the document typepublic I_CmsExtractionResult extractContent(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) throws CmsException
CmsResourceTypeContainerPage.extractContent in interface I_CmsSearchExtractorextractContent in class CmsSolrDocumentXmlContentcms - the cms objectresource - the resource to extract the content fromindex - the index to extract the content forCmsException - if something goes wrongI_CmsSearchExtractor.extractContent(CmsObject, CmsResource, I_CmsSearchIndex)public I_CmsExtractionResult extractContent(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, java.util.Locale forceLocale) throws CmsException
cms - the cms objectresource - the resource to extract the content fromindex - the index to extract the content forforceLocale - if set, only the content values for the given locale will be extractedCmsException - if something goes wrongpublic boolean isLocaleDependend()
CmsSolrDocumentXmlContentisLocaleDependend in interface I_CmsDocumentFactoryisLocaleDependend in class CmsSolrDocumentXmlContenttrue if this document factory is locale dependedI_CmsDocumentFactory.isLocaleDependend()public boolean isUsingCache()
I_CmsDocumentFactorytrue if result caching is supported for this factory.isUsingCache in interface I_CmsDocumentFactoryisUsingCache in class CmsSolrDocumentXmlContenttrue if result caching is supported for this factoryI_CmsDocumentFactory.isUsingCache()