Click here to Skip to main content
15,884,836 members
Articles / Web Development / ASP.NET

ASP.NET C# Search Engine (Highlighting, JSON, jQuery & Silverlight)

Rate me:
Please Sign up or sign in to vote.
4.60/5 (38 votes)
8 Mar 2009CPOL10 min read 376.2K   13.2K   184  
More professional ASP.NET C# search with proper document summary, query highlighting and RIA display options
using System;
using System.Collections.Generic;
using System.Text;

namespace Searcharoo.Common
{
    /// <summary>
    /// Document instance when the Uri is to be ignored (ie not indexable).
    /// </summary>
    /// <remarks>
    /// Created this in case we still want to use the Document class, say 
    /// to get the filesize for reporting or something...
    /// </remarks>
    public class IgnoreDocument : Document
    {
        #region Constructor requires Uri
        public IgnoreDocument(Uri location) : base(location)
        {
            //_Uri = location;
        }
        #endregion

        public override string WordsOnly
        {
            get { return string.Empty; }
        }
        public override void Parse ()
        {
            // no parsing, by default the content is used "as is"
        }
        public override bool GetResponse (System.Net.HttpWebResponse webresponse)
        {
            return false;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
-- ooo ---
www.conceptdevelopment.net
conceptdev.blogspot.com
www.searcharoo.net
www.recipenow.net
www.racereplay.net
www.silverlightearth.com

Comments and Discussions