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.CorruptIndexExceptionorg.apache.lucene.store.LockObtainFailedExceptionIOExceptionpublic static void closeIndexWriter()
                             throws org.apache.lucene.index.CorruptIndexException,
                                    IOException
org.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic static org.apache.lucene.search.IndexSearcher getIndexSearcher()
                                                               throws org.apache.lucene.index.CorruptIndexException,
                                                                      IOException
org.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic static void closeIndexSearcher()
                               throws org.apache.lucene.index.CorruptIndexException,
                                      IOException
org.apache.lucene.index.CorruptIndexExceptionIOExceptionCopyright © 2015. All Rights Reserved.