Class LuceneQueryProcessor

  • All Implemented Interfaces:
    org.apache.camel.Processor

    public class LuceneQueryProcessor
    extends Object
    implements org.apache.camel.Processor
    • Constructor Detail

      • LuceneQueryProcessor

        public LuceneQueryProcessor​(String indexDirectoryPath,
                                    org.apache.lucene.analysis.Analyzer analyzer,
                                    String defaultSearchPhrase,
                                    int maxNumberOfHits)
    • Method Detail

      • process

        public void process​(org.apache.camel.Exchange exchange)
                     throws Exception
        Specified by:
        process in interface org.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)