We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 116,490 times

Contents

Downloads

Related Categories

Create a Site Search Engine in ASP.NET - Introduction

stevanrin

Introduction

The Search Engine module will search an entire page also dynamic pages for matching keyword(s) or a phrase and will count how many times the keyword(s) or phrase are found on the page, and display the results with the highest matches first. The module will search all files with the extensions that you can easily place the extension name into the web.config file where indicated. Files or folders that you don't want searched can be placed in the web.config where indicated, so these files and folders are not searched. Also now you can choose the encoding of your choice.

This updated article contains tips to globalize and enhance the code.

Note: It is best suited for small sites. Also you can modify this code to crawl pages internally by using regular expressions. For larger site you will need to write to XML file once periodically and then read from XML file. I have offered tips at the end of the section to do so.

To get the latest code click here.

I am a Microsoft Certified Solutions Developer in .Net Architecture (MCSD.Net Early Achiever – one among the first 2500 worldwide), Microsoft Certified Application Developer in .Net – MCAD.Net (Charter Member - one among the first 5000 developers worldwide) with Microsoft certifications (MCP) in Visual basic .Net, ASP.net, XML web services, Visual Studio.Net, COM+, C# and SQL Server 2000. I have successfully completed my professional training in .Net from ExecuTrain Institute – Authorized Microsoft Technical Center, Dubai, U.A.E. I am a Science postgraduate majoring in Mathematics serving the IT industry in Dubai, U.A.E as “Dot Net Analyst Programmer/Web Administrator & Developer” for the last few years. I have hands on experience and thorough expertise in .Net technologies.

Comments

  • Re: urgent help needed

    Posted by spellstone on 28 May 2008

    hello all


    i am trying hard to integrate the search engine code but have failed, my site is on local lan server with the root folder as a virtual folder , my site is in c# , i have placed t...

  • Re: [4389] Create a Site Search Engine in ASP.NET

    Posted by shaka on 25 Jun 2007

    Do you have a version of the Search Engine project, for ASP.NET 2.0, that works well with Master Pages?

  • Re: [4389] Create a Site Search Engine in ASP.NET

    Posted by sree2000 on 02 Jun 2006

    Hello,


         I have down loaded the SearchDotNet.zip file from the code project. I am using VS2005, and asp.net 2.0  the files are not getting converted successfully...

  • please suggest me one solution

    Posted by DeepthiP on 31 Jan 2006

    when i used ur solution to implement search engine for my website it is searching only words .
    for example if hai is given it is finding some files having "hai" but if h is given it is showing " 0 f...

  • Posted by antony_cassius on 18 Jan 2006

    you can use text copy to copy images and text objects inside of SQL server
    http://www.mssqlcity.com/Articles/KnowHow/Textcopy.htm