Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search Box

Status
Not open for further replies.

amorous

Programmer
Joined
Sep 5, 2003
Messages
1,008
Location
US
Hi all,

I want to create a search box on my company's website. Whenever some one searches for a particular string, I want to retrieve all the related links and pages under my company's site containing that string.

Can some suggest me a link to a good online tutorial to achieve this task. Or i would be glad if someone atleast give me some intial suggestions to begin creating such a search text box.

By the way i am using ASP.

Thanks in advance.

VJ

 
I also use ASP for that, I guess you have Windows environment. I would suggest to set up an index-catalog for your website and use both Indexing Service and a Database search. You can query the catalog to get a page hit list and do a database search LIKE '%String%' within the table of "related links" you have. The output can be a separated screen where you list the pages on one side and the related links on the other side. One single ASP page what calls himself can do both using the same search variable, but you can make a second page what does the analysis and the first one what has the box on it would contain only a search input field and pass the values to the display/analyze unit.

The backdrop of Indexing Service that you can not really determine what to display as an abbreviated descriptiion of your page when you display a list of links and that text below. For that I use special tagging (basically put my custom tags around the text I think would summarize better the content) and display that in the list instead of the Microsoft default. The other thing you can do is adding an entry in a database for every one of your pages (a page would be identified by its location or a code esspecially tagged out in the page) and as you get the search result, you get further information from the database (such as to be updated, keywords, summary info, author etc.). It is then more like a content management system at that point and requres a lot of administration if it is a big site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top