Exemplo n.º 1
0
        protected void btnShowStats_OnClick(object sender, EventArgs e)
        {
            lblResultsDetails.Visible = true;
            lblResults.Visible        = false;
            SueetieSearch search = new SueetieSearch();

            lblResultsDetails.Text =
                "Indexed Blog Posts: " + search.GetIndexedCountForApplicationTypeID((int)SueetieApplicationType.Blog).ToString() + "<br />" +
                "Indexed Forum Messages: " + search.GetIndexedCountForApplicationTypeID((int)SueetieApplicationType.Forum).ToString() + "<br />" +
                "Indexed Media Objects: " + search.GetIndexedCountForApplicationTypeID((int)SueetieApplicationType.MediaGallery).ToString() + "<br />" +
                "Indexed Wiki Pages: " + search.GetIndexedCountForApplicationTypeID((int)SueetieApplicationType.Wiki).ToString() + "<br />" +
                "Total Items Indexed: " + search.GetTotalIndexedCount().ToString();
        }
Exemplo n.º 2
0
        protected void btnRebuildIndex_OnClick(object sender, EventArgs e)
        {
            SueetieSearch search     = new SueetieSearch();
            string        _startdate = "6/9/1969";

            if (!string.IsNullOrEmpty(txtStartDate.Text))
            {
                _startdate = txtStartDate.Text.Trim();
            }
            search.AsyncUpdateIndex(Convert.ToDateTime(_startdate));
            lblResults.Visible        = true;
            lblResultsDetails.Visible = false;
            lblResults.Text           = "Your site content is being indexed on a background application thread. The results will display in the Sueetie Event Log.";
        }