View Full Version : Search function for my site
steven21
15-06-2007, 01:21 PM
Can anyone point me in the direction of some free code so I can add a search function for my website?
siphilp
15-06-2007, 04:14 PM
You could use google (http://www.google.com/services/search.html#utm_medium=et&utm_source=bizsols&utm_campaign=web_site_search). Or it would be the case of writing a sql statement that searches your content and returning the data. This is only a basic overview as this kind of thing opens a big can of worms.....
If you search :P on google it returns alot of different ways this can be approached. I.e "like statement from selected columns" or "run a Full-text search" and more....
Si
steven21
15-06-2007, 04:22 PM
I was looking for something that will search just my site
siphilp
15-06-2007, 04:26 PM
http://www.michael-thomas.com/sitefiles/siteutil/search.htm
^ an example of using google
Mark Voss
15-06-2007, 05:34 PM
It's pretty old now but I've used ASPSimpleSearch (http://blursoftware.com/ASPSimpleSearch/) on a few sites in the past - it searches in real time and it's very easy to customise.
siphilp
15-06-2007, 08:38 PM
nice little find. My only concern would be the over heads if you site is quite big.
I can't really say much on 3rd party components as the search algorithm on my works website is based on the google(.net, sql server and complete nightmare) and my website is now subtext which has a search component built in.
Off topic
Mark I have to say that i used your MD5 form spam protection on my CMS which is now on the back burner, but worked a treat :)
Mark Voss
15-06-2007, 10:17 PM
Thanks Simon.
I wouldn't use it on a large site but on small sites that are updated regularly it's very useful.
Re: the form robot spam protection,
I don't usually bother with hashing the SessionID but it's handy to know how to hash stuff in ASP.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.