org.kie.kieora.backend.lucene.setups
public abstract class BaseLuceneSetup extends Object implements LuceneSetup
CUSTOM_FIELD_FILENAME
Constructor and Description |
---|
BaseLuceneSetup() |
Modifier and Type | Method and Description |
---|---|
void |
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,
String targetId) |
abstract org.apache.lucene.index.IndexWriter |
writer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commit, dispose, freshIndex, getAnalyzer, nrtRelease, nrtSearcher
public void indexDocument(String id, org.apache.lucene.document.Document doc)
indexDocument
in interface LuceneSetup
public void deleteIfExists(String... docIds)
deleteIfExists
in interface LuceneSetup
public void rename(String sourceId, String targetId)
rename
in interface LuceneSetup
protected int[] lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher, String... ids) throws IOException
IOException
public abstract org.apache.lucene.index.IndexWriter writer()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.