public class Indexer extends Object implements AutoCloseable
| Constructor and Description |
|---|
Indexer(org.apache.lucene.store.Directory dir,
Language language) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.lucene.document.Document doc) |
void |
close() |
void |
index(BufferedReader reader,
String source,
boolean isSentence,
int docCount) |
void |
index(String content,
boolean isSentence,
int docCount) |
void |
index(String content,
String source,
boolean isSentence,
int docCount) |
static void |
main(String[] args) |
static void |
run(BufferedReader reader,
Indexer indexer,
boolean isSentence) |
static void |
run(String content,
org.apache.lucene.store.Directory dir,
Language language,
boolean isSentence) |
public Indexer(org.apache.lucene.store.Directory dir,
Language language)
public static void main(String[] args) throws IOException
IOExceptionpublic static void run(String content, org.apache.lucene.store.Directory dir, Language language, boolean isSentence) throws IOException
IOExceptionpublic static void run(BufferedReader reader, Indexer indexer, boolean isSentence) throws IOException
IOExceptionpublic void index(String content, boolean isSentence, int docCount) throws IOException
IOExceptionpublic void index(String content, String source, boolean isSentence, int docCount) throws IOException
IOExceptionpublic void index(BufferedReader reader, String source, boolean isSentence, int docCount) throws IOException
IOExceptionpublic void add(org.apache.lucene.document.Document doc)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOException