public class DirectoryLuceneIndex extends BaseLuceneIndex
CUSTOM_FIELD_FILENAME
Constructor and Description |
---|
DirectoryLuceneIndex(KCluster cluster,
Directory directory,
org.apache.lucene.index.IndexWriterConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
void |
delete() |
void |
dispose() |
boolean |
freshIndex() |
KCluster |
getCluster() |
org.apache.lucene.index.IndexReader |
nrtReader() |
void |
nrtRelease(org.apache.lucene.index.IndexReader reader) |
void |
nrtRelease(org.apache.lucene.search.IndexSearcher searcher) |
org.apache.lucene.search.IndexSearcher |
nrtSearcher() |
org.apache.lucene.index.IndexWriter |
writer() |
deleteIfExists, indexDocument, lookupDocIdByPK, rename
public org.apache.lucene.index.IndexWriter writer()
writer
in class BaseLuceneIndex
public KCluster getCluster()
public org.apache.lucene.index.IndexReader nrtReader()
public void nrtRelease(org.apache.lucene.index.IndexReader reader)
public org.apache.lucene.search.IndexSearcher nrtSearcher()
public void nrtRelease(org.apache.lucene.search.IndexSearcher searcher)
public void dispose()
public boolean freshIndex()
public void commit()
public void delete()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.