Inheritance: ISearch, IDisposable
Exemple #1
0
        public static IndexQuery GetIndexReader(string location)
        {
            var indexer = new IndexQuery(location);
            indexer.LoadIndex();

            return indexer;
        }
Exemple #2
0
        public void begin()
        {
            try
            {
                index = IndexQuery.GetIndexReader(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "indexer"));

                lock (readyLock)
                {
                    objectState = State.Ready;
                }
            }
            catch (Exception err)
            {
                Trace.TraceError("Error while loading the index {0}", err);
            }

            return;
        }