public class LuceneIndexerWT extends LuceneInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
LuceneIndexerWT.TextFilesFilter |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
verbose |
indexDir, lan, PROCESS_START| Constructor and Description |
|---|
LuceneIndexerWT(java.util.Locale language,
java.lang.String dataDir,
java.lang.String indexDir) |
LuceneIndexerWT(java.lang.String dataDir,
java.lang.String indexDir)
Default invocation for English
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Lucene index
|
protected Document |
getDocument(java.io.File f) |
void |
index() |
void |
index(java.lang.String dataDir,
java.io.FileFilter filter)
Open an index and start file directory traversal
|
static void |
main(java.lang.String[] args) |
void |
setAnalyzer()
Sets the analyzer as a new instance of WTAnalyzer
|
void |
setDataDir(java.lang.String data) |
setIndexDir, setLanguage, setLanguage, setVerbosepublic LuceneIndexerWT(java.lang.String dataDir,
java.lang.String indexDir)
public LuceneIndexerWT(java.util.Locale language,
java.lang.String dataDir,
java.lang.String indexDir)
public void index()
throws java.io.IOException
java.io.IOExceptionpublic void index(java.lang.String dataDir,
java.io.FileFilter filter)
throws java.io.IOException
dataDir - filter - java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void setAnalyzer()
LUCENE_VERSION - lan - public void setDataDir(java.lang.String data)
protected Document getDocument(java.io.File f)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException