public class LuceneQueryProcessor extends Object implements org.apache.camel.Processor
| Constructor and Description |
|---|
LuceneQueryProcessor(String indexDirectoryPath,
org.apache.lucene.analysis.Analyzer analyzer,
String defaultSearchPhrase,
int maxNumberOfHits,
int totalHitsThreshold) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
File |
getIndexDirectory() |
org.apache.lucene.search.IndexSearcher |
getIndexSearcher() |
org.apache.lucene.util.Version |
getLuceneVersion() |
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 |
setLuceneVersion(org.apache.lucene.util.Version luceneVersion) |
void |
setMaxNumberOfHits(int maxNumberOfHits) |
void |
setSearchPhrase(String searchPhrase) |
void |
setTotalHitsThreshold(int totalHitsThreshold) |
public void process(org.apache.camel.Exchange exchange)
throws Exception
process in interface org.apache.camel.ProcessorExceptionpublic org.apache.lucene.analysis.Analyzer getAnalyzer()
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
public org.apache.lucene.search.IndexSearcher getIndexSearcher()
public void setIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
public File getIndexDirectory()
public void setIndexDirectory(File indexDirectory)
public String getSearchPhrase()
public void setSearchPhrase(String searchPhrase)
public int getMaxNumberOfHits()
public void setMaxNumberOfHits(int maxNumberOfHits)
public void setLuceneVersion(org.apache.lucene.util.Version luceneVersion)
public org.apache.lucene.util.Version getLuceneVersion()
public int getTotalHitsThreshold()
public void setTotalHitsThreshold(int totalHitsThreshold)
Apache Camel