SearchLib.Search.IndexQuery.LoadIndex C# (CSharp) Method

LoadIndex() private method

private LoadIndex ( ) : void
return void
        private void LoadIndex()
        {
            _searcher = new IndexSearcher(FSDirectory.Open(new DirectoryInfo(_location)), true);
        }

Usage Example

示例#1
0
        public static IndexQuery GetIndexReader(string location)
        {
            var indexer = new IndexQuery(location);
            indexer.LoadIndex();

            return indexer;
        }
All Usage Examples Of SearchLib.Search.IndexQuery::LoadIndex