public class Indexer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
HITS_PER_PAGE |
Constructor and Description |
---|
Indexer() |
Modifier and Type | Method and Description |
---|---|
static void |
closeIndexSearcher()
Close index searcher
|
static void |
closeIndexWriter()
Close index writer
|
static org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Instance analyzer
|
static org.apache.lucene.search.IndexSearcher |
getIndexSearcher()
Obtain index searcher
|
static org.apache.lucene.index.IndexWriter |
getIndexWriter()
Obtain index writer
|
public static final int HITS_PER_PAGE
public static org.apache.lucene.analysis.Analyzer getAnalyzer()
public static org.apache.lucene.index.IndexWriter getIndexWriter() throws org.apache.lucene.index.CorruptIndexException, org.apache.lucene.store.LockObtainFailedException, IOException
org.apache.lucene.index.CorruptIndexException
org.apache.lucene.store.LockObtainFailedException
IOException
public static void closeIndexWriter() throws org.apache.lucene.index.CorruptIndexException, IOException
org.apache.lucene.index.CorruptIndexException
IOException
public static org.apache.lucene.search.IndexSearcher getIndexSearcher() throws org.apache.lucene.index.CorruptIndexException, IOException
org.apache.lucene.index.CorruptIndexException
IOException
public static void closeIndexSearcher() throws org.apache.lucene.index.CorruptIndexException, IOException
org.apache.lucene.index.CorruptIndexException
IOException
Copyright © 2016. All rights reserved.