Class BaseLuceneIndex
- java.lang.Object
-
- org.uberfire.ext.metadata.backend.lucene.index.BaseLuceneIndex
-
- All Implemented Interfaces:
org.uberfire.commons.lifecycle.Disposable,LuceneIndex,org.uberfire.ext.metadata.engine.Index
- Direct Known Subclasses:
DirectoryLuceneIndex
public abstract class BaseLuceneIndex extends Object implements LuceneIndex
-
-
Field Summary
-
Fields inherited from interface org.uberfire.ext.metadata.backend.lucene.index.LuceneIndex
CUSTOM_FIELD_FILENAME
-
-
Constructor Summary
Constructors Constructor Description BaseLuceneIndex()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleandeleteIfExists(String... docIds)voidindexDocument(String id, org.apache.lucene.document.Document doc)protected int[]lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher, String... ids)voidrename(String sourceId, org.apache.lucene.document.Document doc)abstract org.apache.lucene.index.IndexWriterwriter()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uberfire.ext.metadata.engine.Index
commit, delete, freshIndex, getCluster
-
Methods inherited from interface org.uberfire.ext.metadata.backend.lucene.index.LuceneIndex
nrtReader, nrtRelease, nrtRelease, nrtSearcher
-
-
-
-
Method Detail
-
indexDocument
public void indexDocument(String id, org.apache.lucene.document.Document doc)
- Specified by:
indexDocumentin interfaceLuceneIndex
-
deleteIfExists
public boolean deleteIfExists(String... docIds)
- Specified by:
deleteIfExistsin interfaceLuceneIndex
-
rename
public void rename(String sourceId, org.apache.lucene.document.Document doc)
- Specified by:
renamein interfaceLuceneIndex
-
lookupDocIdByPK
protected int[] lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher, String... ids) throws IOException- Throws:
IOException
-
writer
public abstract org.apache.lucene.index.IndexWriter writer()
-
-