@Immutable @ThreadSafe public final class LuceneConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
LAST_SUCCESSFUL_COMMIT_TIME |
Modifier | Constructor and Description |
---|---|
protected |
LuceneConfig(String baseDir,
String lockFactoryClass,
String directoryClass,
String analyzerClass,
String codecName,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Returns the analyzer configured for Lucene.
|
protected static LuceneConfig |
inMemory() |
protected long |
lastSuccessfulCommitTime() |
protected org.apache.lucene.index.IndexWriter |
newWriter(String workspaceName,
String indexName) |
protected static LuceneConfig |
onDisk(String baseDir) |
protected int |
refreshTimeSeconds() |
protected org.apache.lucene.search.SearcherManager |
searchManager(org.apache.lucene.index.IndexWriter writer) |
protected static final String LAST_SUCCESSFUL_COMMIT_TIME
protected static LuceneConfig inMemory()
protected static LuceneConfig onDisk(String baseDir)
protected org.apache.lucene.index.IndexWriter newWriter(String workspaceName, String indexName)
protected org.apache.lucene.search.SearcherManager searchManager(org.apache.lucene.index.IndexWriter writer)
protected long lastSuccessfulCommitTime()
protected int refreshTimeSeconds()
public org.apache.lucene.analysis.Analyzer getAnalyzer()
Analyzer
instance; never nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.