示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CSearchDAL searchEngine = new CSearchDAL();
            string     rootPath     = MidLayerSettings.AppPath;

            if (rootPath[rootPath.Length - 1] != '\\')
            {
                rootPath += "\\";
            }
            searchEngine.ReIndexFolder(rootPath);
            MessageBox.Show("成功重建索引!", "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }