public class LuceneUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
org.apache.lucene.analysis.Analyzer |
analyzer |
org.apache.lucene.index.IndexWriterConfig |
indexationConfig |
org.apache.lucene.index.IndexWriter |
indexWriter |
protected CoselmarServicesConfig |
servicesConfig |
| Constructor and Description |
|---|
LuceneUtils(CoselmarServicesConfig servicesConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearIndex() |
void |
closeWriter() |
protected org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
org.apache.lucene.index.IndexWriter |
getIndexWriter() |
public org.apache.lucene.analysis.Analyzer analyzer
public final org.apache.lucene.index.IndexWriterConfig indexationConfig
public org.apache.lucene.index.IndexWriter indexWriter
protected CoselmarServicesConfig servicesConfig
public LuceneUtils(CoselmarServicesConfig servicesConfig)
protected org.apache.lucene.analysis.Analyzer getAnalyzer()
public org.apache.lucene.index.IndexWriter getIndexWriter()
throws IOException
IOExceptionpublic void closeWriter()
public void clearIndex()
throws IOException
IOExceptionCopyright © 2014–2015 Ifremer. All rights reserved.