Kieora Lucene Backend 6.0.0.CR3

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

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

public class DirectoryLuceneSetup
extends BaseLuceneSetup


Field Summary
static String REPOSITORIES_ROOT_DIR
           
 
Fields inherited from interface org.kie.kieora.backend.lucene.LuceneSetup
CUSTOM_FIELD_FILENAME
 
Constructor Summary
DirectoryLuceneSetup(org.apache.lucene.store.Directory directory, boolean freshIndex)
           
 
Method Summary
 void commit()
           
protected static File defaultFile()
           
 void dispose()
           
 boolean freshIndex()
           
protected static boolean freshIndex(File file)
           
 org.apache.lucene.analysis.Analyzer getAnalyzer()
           
 void nrtRelease(org.apache.lucene.search.IndexSearcher searcher)
           
 org.apache.lucene.search.IndexSearcher nrtSearcher()
           
 org.apache.lucene.index.IndexWriter writer()
           
 
Methods inherited from class org.kie.kieora.backend.lucene.setups.BaseLuceneSetup
deleteIfExists, indexDocument, lookupDocIdByPK, rename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORIES_ROOT_DIR

public static final String REPOSITORIES_ROOT_DIR
See Also:
Constant Field Values
Constructor Detail

DirectoryLuceneSetup

public DirectoryLuceneSetup(org.apache.lucene.store.Directory directory,
                            boolean freshIndex)
Method Detail

writer

public org.apache.lucene.index.IndexWriter writer()
Specified by:
writer in class BaseLuceneSetup

nrtSearcher

public org.apache.lucene.search.IndexSearcher nrtSearcher()

nrtRelease

public void nrtRelease(org.apache.lucene.search.IndexSearcher searcher)

getAnalyzer

public org.apache.lucene.analysis.Analyzer getAnalyzer()

dispose

public void dispose()

freshIndex

public boolean freshIndex()

commit

public void commit()

freshIndex

protected static boolean freshIndex(File file)

defaultFile

protected static File defaultFile()

Kieora Lucene Backend 6.0.0.CR3

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