Beispiel #1
0
        public override FullTextSearchInfo GetFullTextInfo()
        {
            var info = new FullTextSearchInfo();

            info.Features = FullTextSearchFeatures.SingleKeyRankTable;
            return(info);
        }
Beispiel #2
0
        protected void BindSettings()
        {
            if (PortalConfig.UseFullTextSearch.HasValue)
            {
                trFTSNotInstalled.Visible = false;
                trFTSNotEnabled.Visible   = false;
                trFTSEnabled.Visible      = true;
                if ((bool)PortalConfig.UseFullTextSearch)
                {
                    ftsStat.Visible = true;
                    try
                    {
                        FullTextSearchInfo info = FullTextSearch.GetInformation();
                        lbIndSize.Text        = Util.CommonHelper.ByteSizeToStr(info.IndexSize * 1024 * 1024);
                        lbStat.Text           = info.PopulateStatus.ToString();
                        ftsInfoOK.Visible     = true;
                        ftsInfoFailed.Visible = false;
                    }
                    catch (Exception ex)
                    {
                        ftsInfoOK.Visible      = false;
                        ftsInfoFailed.Visible  = true;
                        lbFTSErrorMessage.Text = ex.Message;
                    }
                }
                else
                {
                    trFTSEnabled.Visible    = false;
                    ftsStat.Visible         = false;
                    trFTSNotEnabled.Visible = true;
                }
            }
            else
            {
                if (!FullTextSearch.IsInstalled())
                {
                    trFTSNotInstalled.Visible = true;
                    trFTSNotEnabled.Visible   = false;
                    trFTSEnabled.Visible      = false;
                }
                if (FullTextSearch.IsInstalled())
                {
                    trFTSNotInstalled.Visible = false;
                    trFTSNotEnabled.Visible   = true;
                    trFTSEnabled.Visible      = false;
                }
            }

            if (PortalConfig.UseWebDav.HasValue)
            {
                if ((bool)PortalConfig.UseWebDav)
                {
                    trWDDisabled.Visible = false;
                    trWDEnabled.Visible  = true;
                }
                else
                {
                    trWDDisabled.Visible = true;
                    trWDEnabled.Visible  = false;
                }
            }
            else
            {
                trWDDisabled.Visible = true;
                trWDEnabled.Visible  = false;
            }

            SmtpBox box = OutgoingEmailServiceConfig.FindSmtpBox(OutgoingEmailServiceType.SendFile, false);

            if (box != null)
            {
                CommonHelper.SafeSelect(ddSmtpBoxes, box.SmtpBoxId.ToString());
            }
        }