|
||||||||
| 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
public class CmsSolrDocumentXmlContent
Special document text extraction factory for Solr index.
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_XMLCONTENT_SOLR
The solr document type name for xml-contents. |
| Fields inherited from class org.opencms.search.documents.A_CmsVfsDocument |
|---|
m_name |
| Constructor Summary | |
|---|---|
CmsSolrDocumentXmlContent(java.lang.String name)
Public constructor. |
|
| Method Summary | |
|---|---|
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Returns the raw text content of a given VFS resource of type CmsResourceTypeXmlContent. |
| Methods inherited from class org.opencms.search.documents.CmsDocumentXmlContent |
|---|
createDocument, getDocumentKeys, isLocaleDependend, isUsingCache |
| 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_XMLCONTENT_SOLR
| Constructor Detail |
|---|
public CmsSolrDocumentXmlContent(java.lang.String name)
name - the name for the document type| Method Detail |
|---|
public I_CmsExtractionResult extractContent(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
throws CmsException
CmsDocumentXmlContentCmsResourceTypeXmlContent.
All XML nodes from the content for all locales will be stored separately in the item map
which you can access using CmsExtractionResult.getContentItems(). The XML elements will be
accessible using their xpath. The xpath will have the form like for example
Text[1] or Nested[1]/Text[1].
extractContent in interface I_CmsSearchExtractorextractContent in class CmsDocumentXmlContentcms - the cms objectresource - the resource to extract the content fromindex - the index to extract the content for
CmsException - if something goes wrongCmsDocumentXmlContent.extractContent(org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.CmsSearchIndex)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||