org.tm4j.topicmap.index.text
Class LuceneDocumentFactory
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneDocumentFactory
public LuceneDocumentFactory()
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)