com.xpn.xwiki.plugin.lucene
Class DocumentData

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

public class DocumentData
extends AbstractDocumentData

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$

Field Summary
 
Fields inherited from class com.xpn.xwiki.plugin.lucene.AbstractDocumentData
AUTHOR_BOOST, CONTENT_BOOST, CREATION_DATE_BOOST, CREATOR_BOOST, DATE_BOOST, FULL_NAME_BOOST, ID_BOOST, LANGUAGE_BOOST, NAME_BOOST, SPACE_BOOST, TITLE_BOOST, TYPE_BOOST, WIKI_BOOST
 
Constructor Summary
DocumentData(com.xpn.xwiki.doc.XWikiDocument doc, com.xpn.xwiki.XWikiContext context, boolean deleted)
           
 
Method Summary
 void addDocumentDataToLuceneDocument(org.apache.lucene.document.Document luceneDoc, com.xpn.xwiki.doc.XWikiDocument doc, com.xpn.xwiki.XWikiContext context)
           
protected  void getFullText(StringBuilder sb, com.xpn.xwiki.doc.XWikiDocument doc, com.xpn.xwiki.XWikiContext context)
           
 
Methods inherited from class com.xpn.xwiki.plugin.lucene.AbstractDocumentData
addDataToLuceneDocument, addFieldToDocument, getCreationDate, getCreator, getDocumentFullName, getDocumentName, getDocumentReference, getDocumentSpace, getDocumentTitle, getFullName, getFullText, getId, getLanguage, getTerm, getVersion, getWiki, setAuthor, setCreationDate, setCreator, setDocumentTitle, setLanguage, setModificationDate, setVersion, toString
 
Methods inherited from class com.xpn.xwiki.plugin.lucene.AbstractIndexData
getEntityName, getEntityReference, getType, isDeleted, setDeleted, setEntityReference
 
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,
                    boolean deleted)
Method Detail

getFullText

protected void getFullText(StringBuilder sb,
                           com.xpn.xwiki.doc.XWikiDocument doc,
                           com.xpn.xwiki.XWikiContext context)
Overrides:
getFullText in class AbstractDocumentData

addDocumentDataToLuceneDocument

public void addDocumentDataToLuceneDocument(org.apache.lucene.document.Document luceneDoc,
                                            com.xpn.xwiki.doc.XWikiDocument doc,
                                            com.xpn.xwiki.XWikiContext context)
Overrides:
addDocumentDataToLuceneDocument in class AbstractDocumentData


Copyright © 2004-2011 XWiki. All Rights Reserved.