public class PositionStoringLuceneIndexCreator extends AbstractLuceneIndexCreator
WindowSupportingLuceneCorpusAdapter.| Modifier and Type | Field and Description |
|---|---|
protected String |
docLengthFieldName |
private static org.slf4j.Logger |
LOGGER |
commitInterval, DEFAULT_COMMIT_INTERVAL, textFieldName, version| Constructor and Description |
|---|
PositionStoringLuceneIndexCreator(String textFieldName,
String docLengthFieldName) |
PositionStoringLuceneIndexCreator(String textFieldName,
String docLengthFieldName,
int commitInterval) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createIndex(File indexPath,
Iterator<IndexableDocument> docIterator)
Creates the index.
|
addDocumentLength, getCommitInterval, getTextFieldName, setCommitInterval, toLuceneDocumentprivate static final org.slf4j.Logger LOGGER
protected String docLengthFieldName
public PositionStoringLuceneIndexCreator(String textFieldName, String docLengthFieldName)
public boolean createIndex(File indexPath, Iterator<IndexableDocument> docIterator)
indexPath - The path to the director in which the Lucene index will be createddocIterator - Iterator that iterates over the document texts.Copyright © 2014–2016. All rights reserved.