public SearcherTracker(IndexSearcher searcher) {this.searcher = searcher;version = ((DirectoryReader) searcher.getIndexReader()).getVersion();searcher.getIndexReader().incRef();recordTimeSec = System.nanoTime() / NANOS_PER_SEC;}
public SearcherTracker(IndexSearcher searcher){Searcher = searcher;Version = ((DirectoryReader)searcher.IndexReader).Version;searcher.IndexReader.IncRef();RecordTimeSec = Time.NanoTime() / NANOS_PER_SEC;}