Class LuceneQueryProcessor
java.lang.Object
org.apache.camel.processor.lucene.LuceneQueryProcessor
- All Implemented Interfaces:
org.apache.camel.Processor
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneQueryProcessor(String indexDirectoryPath, org.apache.lucene.analysis.Analyzer analyzer, String defaultSearchPhrase, int maxNumberOfHits) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.Analyzerorg.apache.lucene.search.IndexSearcherintintvoidprocess(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)
-
Constructor Details
-
LuceneQueryProcessor
-
-
Method Details
-
process
- 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
-
setIndexDirectory
-
getSearchPhrase
-
setSearchPhrase
-
getMaxNumberOfHits
public int getMaxNumberOfHits() -
setMaxNumberOfHits
public void setMaxNumberOfHits(int maxNumberOfHits) -
getTotalHitsThreshold
public int getTotalHitsThreshold() -
setTotalHitsThreshold
public void setTotalHitsThreshold(int totalHitsThreshold)
-