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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i make a site search

Status
Not open for further replies.

simplyJ

MIS
Jul 12, 2001
59
US
Every site now has a search site option. This might be basic, but how do they do this? Do they internally have to make a keyword list of every page they have, or can they search the tags in the header of all the webpages?

 
hi friend,

its very simple now... all u need is that to have a database containing the columns like title, url, keyword, description and body. U program your page in such a way that it reads the links from home page and then individual link page. Then it starts filtering...it first searches for <title keword and get its position and extracts all the string till it encounters </title>

Simlilary keyword and others

In case of body make sure u remove all the tags, keywords like and of if but etc... and stores in the database.

The loop continues till all links are checked.. though u have to do lots of validation...

Hope this wil slove ur purpose...

Regards
 
You can use OpenSchema to get information out of a database and loop thru also. If its text files then just add the extensions as a variable and loop through all file types as long as they are'nt binary.

g
 
Or, if you really want a powerful search, and you are running IIS, try using the search that is included with index server. That kicks!

Otherwise, you can do what the previous posts mentioned.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top