Beispiel #1
0
        public SearchableIndex GetSearchIndex()
        {
            string text = Path.Combine(this.basedir, "search_index");

            if (System.IO.Directory.Exists(text))
            {
                return(SearchableIndex.Load(text));
            }
            text = Path.Combine(ConfigurationManager.AppSettings["docDir"], "search_index");
            return(SearchableIndex.Load(text));
        }