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_NAME, TYPE_XMLCONTENT_SOLR
m_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,
CmsSearchIndex index)
Returns the raw text content of a VFS resource of type
CmsResourceTypeContainerPage . |
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
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, getDocumentKeys
createDocument, getCache, getDocumentKey, getName, logContentExtraction, readFile, setCache
public 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, CmsSearchIndex index) throws CmsException
CmsResourceTypeContainerPage
.extractContent
in interface I_CmsSearchExtractor
extractContent
in class CmsSolrDocumentXmlContent
cms
- 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, CmsSearchIndex)
public I_CmsExtractionResult extractContent(CmsObject cms, CmsResource resource, 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()
CmsSolrDocumentXmlContent
isLocaleDependend
in interface I_CmsDocumentFactory
isLocaleDependend
in class CmsSolrDocumentXmlContent
true
if this document factory is locale dependedI_CmsDocumentFactory.isLocaleDependend()
public boolean isUsingCache()
I_CmsDocumentFactory
true
if result caching is supported for this factory.isUsingCache
in interface I_CmsDocumentFactory
isUsingCache
in class CmsSolrDocumentXmlContent
true
if result caching is supported for this factoryI_CmsDocumentFactory.isUsingCache()