com.xpn.xwiki.plugin.lucene
Class DocumentData

java.lang.Object
  extended by com.xpn.xwiki.plugin.lucene.IndexData
      extended by com.xpn.xwiki.plugin.lucene.DocumentData

public class DocumentData
extends IndexData

Holds all data but the content of a wiki page to be indexed. The content is retrieved at indexing time, which should save us some memory especially when rebuilding an index for a big wiki.

Version:
$Id: $

Constructor Summary
DocumentData(com.xpn.xwiki.doc.XWikiDocument doc, com.xpn.xwiki.XWikiContext context)
           
 
Method Summary
 java.lang.String getFullText(com.xpn.xwiki.doc.XWikiDocument doc, com.xpn.xwiki.XWikiContext context)
           
 java.lang.String getType()
           
 
Methods inherited from class com.xpn.xwiki.plugin.lucene.IndexData
addDataToLuceneDocument, buildQuery, getCreationDate, getCreator, getDocumentFullName, getDocumentName, getDocumentTitle, getDocumentWeb, getFullName, getId, getLanguage, getWiki, setAuthor, setCreationDate, setCreator, setDocumentFullName, setDocumentName, setDocumentTitle, setDocumentWeb, setFullName, setLanguage, setModificationDate, setWiki, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentData

public DocumentData(com.xpn.xwiki.doc.XWikiDocument doc,
                    com.xpn.xwiki.XWikiContext context)
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in class IndexData
See Also:
IndexData.getType()

getFullText

public java.lang.String getFullText(com.xpn.xwiki.doc.XWikiDocument doc,
                                    com.xpn.xwiki.XWikiContext context)
Overrides:
getFullText in class IndexData
Returns:
a string containing the result of IndexData.getFullText(com.xpn.xwiki.doc.XWikiDocument, com.xpn.xwiki.XWikiContext) plus the full text content of this document (in the given language)


Copyright © 2004-2009 XWiki. All Rights Reserved.