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 |
indexSentence(Sentence sentence,
int docCount) |
void |
indexText(BufferedReader reader) |
static void |
main(String[] args) |
static void |
run(String content,
org.apache.lucene.store.Directory dir,
Language language) |
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) throws IOException
IOExceptionpublic void indexSentence(Sentence sentence, int docCount) throws IOException
IOExceptionpublic void indexText(BufferedReader reader) throws IOException
IOExceptionpublic void add(org.apache.lucene.document.Document doc)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOException