public Plain(SummarizerParameters parameters) : base(parameters)
 {
     NoSummary = umbraco.library.GetDictionaryItem("FullTextSearch__NoSummary");
     if (string.IsNullOrEmpty(NoSummary))
     {
         NoSummary = "Read More";
     }
     NoTitle = umbraco.library.GetDictionaryItem("FullTextSearch__NoTitle");
     if (string.IsNullOrEmpty(NoTitle))
     {
         NoTitle = "Unknown Page";
     }
 }
        public Highlight(SummarizerParameters parameters)
            : base(parameters)
        {
            var searchProvider = ExamineManager.Instance.SearchProviderCollection[parameters.SearchProvider];

            if (searchProvider is LuceneSearcher)
            {
                _searcher = (searchProvider as LuceneSearcher).GetSearcher() as IndexSearcher;
                _analyzer = (searchProvider as LuceneSearcher).IndexingAnalyzer;
                _reader   = _searcher.GetIndexReader();
            }
            else
            {
                throw new ArgumentException("Supplied search provider not found, or is not a valid LuceneSearcher");
            }
            _formatter = new SimpleHTMLFormatter(parameters.HighlightPreTag, parameters.HighlightPostTag);
            // fall back to plain summary if no highlight found
            _plainSummariser = new Plain(parameters);
        }
 protected Summarizer(SummarizerParameters Parameters)
 {
     this.Parameters = Parameters;
 }