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