org.tm4j.topicmap.index.text .LuceneIndexBase
Description
INTERNAL Abstract base class for FullTextIndexes using lucene for TextIndexing Concrete Implementations have to set an analyzer and directory implementation before starting the indexing. For building the index, utility methods for common topicMapObjects are available ( addDocument(...) ) these creates fields for not locator data, and Locators from Occurrences, adds object ids as unindexed fields.
Inheritance Hierarchy
- java.lang.Object
- LuceneIndexBase
Interfaces
Field Summary | |
---|---|
OPT_LUCENE_ANALYZER | The configuration property key for the property that specifies the full Java class name of the Lucene Analyzer to use for the full text index. |
OPT_LUCENE_DIR | The configuration property key for the property that specifies the path name of the file-system directory to use for the full text index. |
createNew | |
log | |
org.tm4j.topicmap.index.text.LuceneIndexBase.topicMap |
Method Summary | |
---|---|
void | addDocument(org.tm4j.topicmap.BaseName baseName) |
void | addDocument(org.tm4j.topicmap.Occurrence occurrence) |
void | addDocument(org.tm4j.topicmap.Topic topic) |
void | addDocument(org.tm4j.topicmap.Variant variant) |
void | buildIndex() |
void | close() |
void |
configure(java.util.Properties props)
Runtime configuration method invoked by the ConfigurableIndexProvider
class.
|
org.apache.lucene.document.Document | createDocument(org.tm4j.topicmap.TopicMapObject object) |
QueryResult | findByText(java.lang.String query,boolean includeURIs) |
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Access method for the used Lucene Analyzer
|
org.apache.lucene.store.Directory |
getDir()
Access method for the used Lucene Directory
|
void | isOpen() |
void | open() |
void | reindex() |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Set Method for the used Lucene Analyzer
|
void |
setDir(org.apache.lucene.store.Directory dir)
Set Method for the used Lucene Directory
|
Meta Data (2)
@author
:
Harald Kuhn, harald_kuhn at users.sourceforge.net