public abstract class BaseLuceneIndex extends Object implements LuceneIndex
CUSTOM_FIELD_FILENAME
Constructor and Description |
---|
BaseLuceneIndex() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteIfExists(String... docIds) |
void |
indexDocument(String id,
org.apache.lucene.document.Document doc) |
protected int[] |
lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher,
String... ids) |
void |
rename(String sourceId,
org.apache.lucene.document.Document doc) |
abstract org.apache.lucene.index.IndexWriter |
writer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nrtReader, nrtRelease, nrtRelease, nrtSearcher
commit, delete, freshIndex, getCluster
public void indexDocument(String id, org.apache.lucene.document.Document doc)
indexDocument
in interface LuceneIndex
public boolean deleteIfExists(String... docIds)
deleteIfExists
in interface LuceneIndex
public void rename(String sourceId, org.apache.lucene.document.Document doc)
rename
in interface LuceneIndex
protected int[] lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher, String... ids) throws IOException
IOException
public abstract org.apache.lucene.index.IndexWriter writer()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.