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 luceneVersion,
boolean returnLuceneDocs) |
public void open(File indexDirectory, org.apache.lucene.analysis.Analyzer analyzer) throws IOException
IOException
public void close() throws IOException
IOException
public Hits search(String searchPhrase, int maxNumberOfHits) throws Exception
Exception
Apache Camel