Class IndexReadersCache


  • public class IndexReadersCache
    extends Object
    • Method Detail

      • getIndexReader

        public static org.apache.lucene.index.IndexReader getIndexReader​(String path)
        This method must be called only within a IndexProcessor.SearchIndexProcess.process() implementation in order to get a right behavior against the concurrent accesses.
        Parameters:
        path - the index root path.
        Returns:
        the IndexReader well initialized if necessary.