|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.search.documents.A_CmsVfsDocument
org.opencms.search.documents.CmsDocumentXmlContent
org.opencms.search.solr.CmsSolrDocumentXmlContent
org.opencms.search.solr.CmsSolrDocumentContainerPage
public class CmsSolrDocumentContainerPage
Lucene document factory class to extract index data from a resource
of type CmsResourceTypeContainerPage.
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_CONTAINERPAGE_SOLR
The solr document type name for xml-contents. |
| Fields inherited from class org.opencms.search.solr.CmsSolrDocumentXmlContent |
|---|
TYPE_XMLCONTENT_SOLR |
| Fields inherited from class org.opencms.search.documents.A_CmsVfsDocument |
|---|
m_name |
| Constructor Summary | |
|---|---|
CmsSolrDocumentContainerPage(java.lang.String name)
Creates a new instance of this lucene document factory. |
|
| Method Summary | |
|---|---|
I_CmsSearchDocument |
createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Generates a new lucene document instance from contents of the given resource for the provided index. |
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Returns the raw text content of a VFS resource of type CmsResourceTypeContainerPage. |
boolean |
isLocaleDependend()
Returns true if this document factory is locale depended. |
boolean |
isUsingCache()
Returns true if result caching is supported for this factory. |
| Methods inherited from class org.opencms.search.documents.CmsDocumentXmlContent |
|---|
getDocumentKeys |
| Methods inherited from class org.opencms.search.documents.A_CmsVfsDocument |
|---|
getCache, getDocumentKey, getName, logContentExtraction, readFile, setCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_CONTAINERPAGE_SOLR
| Constructor Detail |
|---|
public CmsSolrDocumentContainerPage(java.lang.String name)
name - name of the document type| Method Detail |
|---|
public I_CmsSearchDocument createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
throws CmsException
For container pages, we must not cache based on the container page content age, since the content of the included elements may change any time.
createDocument in interface I_CmsDocumentFactorycreateDocument in class CmsDocumentXmlContentcms - the OpenCms user context used to access the OpenCms VFSresource - the search index resource to create the Lucene document fromindex - the search index to create the Document for
CmsException - if something goes wrongA_CmsVfsDocument.createDocument(org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.CmsSearchIndex)
public I_CmsExtractionResult extractContent(CmsObject cms,
CmsResource resource,
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 for
CmsException - if something goes wrongI_CmsSearchExtractor.extractContent(CmsObject, CmsResource, CmsSearchIndex)public boolean isLocaleDependend()
I_CmsDocumentFactorytrue if this document factory is locale depended.
isLocaleDependend in interface I_CmsDocumentFactoryisLocaleDependend in class CmsDocumentXmlContenttrue 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 CmsDocumentXmlContenttrue if result caching is supported for this factoryI_CmsDocumentFactory.isUsingCache()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||