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

            return indexer;
        }
Ejemplo n.º 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;
        }