net.sf.eos.lucene
Class DefaultLuceneDocumentCreator

java.lang.Object
  extended by net.sf.eos.config.Configured
      extended by net.sf.eos.lucene.LuceneDocumentCreator
          extended by net.sf.eos.lucene.DefaultLuceneDocumentCreator
All Implemented Interfaces:
Configurable, CommonDocument

public class DefaultLuceneDocumentCreator
extends LuceneDocumentCreator
implements CommonDocument

NameValue ofStoreTokenizeComment
CONTENTEosDocument.getText()YesTOKENIZED
CREATOREosDocument.CREATOR_META_KEYYesTOKENIZEDAll values where added to the field
IDEosDocument.ID_META_KEYYesUN_TOKENIZEDAll values where added to the field
YEAREosDocument.YEAR_META_KEYYesUN_TOKENIZEDAll values where added to the field

Author:
Sascha Kohlmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.eos.lucene.CommonDocument
CommonDocument.FieldName
 
Field Summary
 
Fields inherited from class net.sf.eos.lucene.LuceneDocumentCreator
DOCUMENT_CREATOR_IMPL_CONFIG_NAME
 
Constructor Summary
DefaultLuceneDocumentCreator()
           
 
Method Summary
 org.apache.lucene.document.Document createLuceneForEosDocument(EosDocument doc)
          Creates a new document.
 
Methods inherited from class net.sf.eos.lucene.LuceneDocumentCreator
newInstance
 
Methods inherited from class net.sf.eos.config.Configured
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLuceneDocumentCreator

public DefaultLuceneDocumentCreator()
Method Detail

createLuceneForEosDocument

public org.apache.lucene.document.Document createLuceneForEosDocument(EosDocument doc)
                                                               throws EosException
Creates a new document.

Specified by:
createLuceneForEosDocument in class LuceneDocumentCreator
Parameters:
doc - the document to transform
Returns:
a Lucene Document for indexing
Throws:
EosException - if transformation fails


Copyright © 2008. All Rights Reserved.