Class LuceneSingleIndexLanguageModel.LuceneSearcher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) org.apache.lucene.store.FSDirectory directory  
      (package private) org.apache.lucene.index.IndexReader reader  
      (package private) org.apache.lucene.search.IndexSearcher searcher  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LuceneSearcher​(java.io.File indexDir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.index.IndexReader getReader()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • directory

        final org.apache.lucene.store.FSDirectory directory
      • reader

        final org.apache.lucene.index.IndexReader reader
      • searcher

        final org.apache.lucene.search.IndexSearcher searcher
    • Constructor Detail

      • LuceneSearcher

        private LuceneSearcher​(java.io.File indexDir)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getReader

        public org.apache.lucene.index.IndexReader getReader()