org.apache.camel.component.lucene
Class LuceneSearcher

java.lang.Object
  extended by org.apache.camel.component.lucene.LuceneSearcher

public class LuceneSearcher
extends Object


Constructor Summary
LuceneSearcher()
           
 
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
 

Constructor Detail

LuceneSearcher

public LuceneSearcher()
Method Detail

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