public final class BatchIndexer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FIELD |
Constructor and Description |
---|
BatchIndexer(org.apache.lucene.index.IndexWriter indexWriter) |
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.lucene.document.Field field) |
void |
close() |
void |
endDocument() |
void |
flush() |
int |
getBatchSize() |
int |
getCount() |
org.apache.lucene.index.IndexWriter |
getIndexWriter() |
void |
setBatchSize(int batchSize) |
void |
startDocument() |
void |
startDocument(String identifier) |
public static final String DEFAULT_FIELD
public BatchIndexer(org.apache.lucene.index.IndexWriter indexWriter)
public int getCount()
public void startDocument(String identifier)
public void startDocument()
public void endDocument()
public void add(org.apache.lucene.document.Field field)
public void flush()
public void setBatchSize(int batchSize)
public int getBatchSize()
public void close()
public org.apache.lucene.index.IndexWriter getIndexWriter()
Copyright © 2015. All Rights Reserved.