public class LuceneSearcher extends Object
| Constructor and Description |
|---|
LuceneSearcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(File indexDirectory,
org.apache.lucene.analysis.Analyzer analyzer) |
Hits |
search(String searchPhrase,
int maxNumberOfHits) |
Hits |
search(String searchPhrase,
int maxNumberOfHits,
org.apache.lucene.util.Version luenceVersion) |
public void open(File indexDirectory, org.apache.lucene.analysis.Analyzer analyzer) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic Hits search(String searchPhrase, int maxNumberOfHits) throws Exception
ExceptionApache Camel