org.kie.kieora.backend.lucene.setups
public class DirectoryLuceneSetup extends BaseLuceneSetup
Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORIES_ROOT_DIR |
Constructor and Description |
---|
DirectoryLuceneSetup(org.apache.lucene.store.Directory directory,
boolean freshIndex) |
Modifier and Type | Method and Description |
---|---|
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() |
deleteIfExists, indexDocument, lookupDocIdByPK, rename
public static final String REPOSITORIES_ROOT_DIR
public DirectoryLuceneSetup(org.apache.lucene.store.Directory directory, boolean freshIndex)
public org.apache.lucene.index.IndexWriter writer()
writer
in class BaseLuceneSetup
public org.apache.lucene.search.IndexSearcher nrtSearcher()
public void nrtRelease(org.apache.lucene.search.IndexSearcher searcher)
public org.apache.lucene.analysis.Analyzer getAnalyzer()
public void dispose()
public boolean freshIndex()
public void commit()
protected static boolean freshIndex(File file)
protected static File defaultFile()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.