org.apache.camel.component.lucene
Class LuceneSearcher
java.lang.Object
org.apache.camel.component.lucene.LuceneSearcher
public class LuceneSearcher
- extends Object
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneSearcher
public LuceneSearcher()
open
public void open(File indexDirectory,
org.apache.lucene.analysis.Analyzer analyzer)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
search
public Hits search(String searchPhrase,
int maxNumberOfHits)
throws Exception
- Throws:
Exception
search
public Hits search(String searchPhrase,
int maxNumberOfHits,
org.apache.lucene.util.Version luenceVersion)
throws Exception
- Throws:
Exception
Apache Camel