private void LoadIndex() { _searcher = new IndexSearcher(FSDirectory.Open(new DirectoryInfo(_location)), true); }
public static IndexQuery GetIndexReader(string location) { var indexer = new IndexQuery(location); indexer.LoadIndex(); return indexer; }