Kieora Lucene Backend 6.0.0.CR3

org.kie.kieora.backend.lucene.setups
Class BaseLuceneSetup

java.lang.Object
  extended by org.kie.kieora.backend.lucene.setups.BaseLuceneSetup
All Implemented Interfaces:
LuceneSetup
Direct Known Subclasses:
DirectoryLuceneSetup

public abstract class BaseLuceneSetup
extends Object
implements LuceneSetup


Field Summary
 
Fields inherited from interface org.kie.kieora.backend.lucene.LuceneSetup
CUSTOM_FIELD_FILENAME
 
Constructor Summary
BaseLuceneSetup()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kie.kieora.backend.lucene.LuceneSetup
commit, dispose, freshIndex, getAnalyzer, nrtRelease, nrtSearcher
 

Constructor Detail

BaseLuceneSetup

public BaseLuceneSetup()
Method Detail

indexDocument

public void indexDocument(String id,
                          org.apache.lucene.document.Document doc)
Specified by:
indexDocument in interface LuceneSetup

deleteIfExists

public void deleteIfExists(String... docIds)
Specified by:
deleteIfExists in interface LuceneSetup

rename

public void rename(String sourceId,
                   String targetId)
Specified by:
rename in interface LuceneSetup

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()

Kieora Lucene Backend 6.0.0.CR3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.