org.tm4j.topicmap.index.text
Class LuceneDocumentFactory

java.lang.Object
  extended byorg.tm4j.topicmap.index.text.LuceneDocumentFactory

public class LuceneDocumentFactory
extends java.lang.Object

Utility class for LuceneFullTextIndex Creates fields for not locator data, and Locators from Occurrences, adds object ids as unindexed fields BaseName values get a boost in order to increase their importance

Author:
Harald Kuhn, harald_kuhn at users.sourceforge.net

Constructor Summary
LuceneDocumentFactory()
           
 
Method Summary
static org.apache.lucene.document.Document createDocument(BaseName baseName)
           
static org.apache.lucene.document.Document createDocument(Occurrence occurrence)
           
static org.apache.lucene.document.Document createDocument(Topic topic)
           
static org.apache.lucene.document.Document createDocument(TopicMapObject object)
           
static org.apache.lucene.document.Document createDocument(Variant variant)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneDocumentFactory

public LuceneDocumentFactory()
Method Detail

createDocument

public static org.apache.lucene.document.Document createDocument(Topic topic)

createDocument

public static org.apache.lucene.document.Document createDocument(BaseName baseName)

createDocument

public static org.apache.lucene.document.Document createDocument(Variant variant)

createDocument

public static org.apache.lucene.document.Document createDocument(Occurrence occurrence)

createDocument

public static org.apache.lucene.document.Document createDocument(TopicMapObject object)