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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.Analyzer
getAnalyzer()
File
getIndexDirectory()
org.apache.lucene.search.IndexSearcher
getIndexSearcher()
int
getMaxNumberOfHits()
String
getSearchPhrase()
int
getTotalHitsThreshold()
void
process(org.apache.camel.Exchange exchange)
void
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
void
setIndexDirectory(File indexDirectory)
void
setIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
void
setMaxNumberOfHits(int maxNumberOfHits)
void
setSearchPhrase(String searchPhrase)
void
setTotalHitsThreshold(int totalHitsThreshold)
-
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange) throws Exception
- Specified by:
process
in 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)
-
-