Class LuceneQueryProcessor
- java.lang.Object
-
- org.apache.camel.processor.lucene.LuceneQueryProcessor
-
- All Implemented Interfaces:
org.apache.camel.Processor
public class LuceneQueryProcessor extends Object implements org.apache.camel.Processor
-
-
Constructor Summary
Constructors Constructor Description LuceneQueryProcessor(String indexDirectoryPath, org.apache.lucene.analysis.Analyzer analyzer, String defaultSearchPhrase, int maxNumberOfHits, int totalHitsThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.AnalyzergetAnalyzer()FilegetIndexDirectory()org.apache.lucene.search.IndexSearchergetIndexSearcher()intgetMaxNumberOfHits()StringgetSearchPhrase()intgetTotalHitsThreshold()voidprocess(org.apache.camel.Exchange exchange)voidsetAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)voidsetIndexDirectory(File indexDirectory)voidsetIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)voidsetMaxNumberOfHits(int maxNumberOfHits)voidsetSearchPhrase(String searchPhrase)voidsetTotalHitsThreshold(int totalHitsThreshold)
-
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange) throws Exception- Specified by:
processin interfaceorg.apache.camel.Processor- Throws:
Exception
-
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer()
-
setAnalyzer
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
-
getIndexSearcher
public org.apache.lucene.search.IndexSearcher getIndexSearcher()
-
setIndexSearcher
public void setIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
-
getIndexDirectory
public File getIndexDirectory()
-
setIndexDirectory
public void setIndexDirectory(File indexDirectory)
-
getSearchPhrase
public String getSearchPhrase()
-
setSearchPhrase
public void setSearchPhrase(String searchPhrase)
-
getMaxNumberOfHits
public int getMaxNumberOfHits()
-
setMaxNumberOfHits
public void setMaxNumberOfHits(int maxNumberOfHits)
-
getTotalHitsThreshold
public int getTotalHitsThreshold()
-
setTotalHitsThreshold
public void setTotalHitsThreshold(int totalHitsThreshold)
-
-