View Full Version : Search Script
Diversions
02-07-2008, 06:15 PM
I am in need of some type of site search script that enables visitors to search a singular large domain rather than use the Google engine which may prematurely take potential customers away.
Any guidance would be appreciated.
D
fileserverdirect
04-12-2008, 08:37 PM
I just did a search and this post came up (2 monther later :))
You can still use google just put "site:yourdomain" before the acutal query, that way no other sites show up. If you want to host a search, then try this:
http://www.javascriptkit.com/script/script2/jse/index.shtml
:)
djr33
04-12-2008, 09:58 PM
There are three ways to go about this:
1. Use google (or another prebuilt script). I recommend this. Much easier, and it'll work well.
2. Create a pseudo search script, that refers to data you create. In other words, you can create a database and type in a few keywords for each page, then have the visitor search and if any keywords match you can return that page as a result. This isn't truly "searching" anything, but just sorta cross-referencing. It's a bit of work to setup, and hard to maintain (having to manually enter keywords-- or perhaps you could make a keyword generator from a page), but it can work out ok.
3. Actually search every page. This is tough. Maybe if you have a database driven site you could search it through the database itself, but if you are actually searching through every page on the site it will just be very slow. Perhaps looking at what google does, that is crawling through every page fairly often to determine keywords-- basically an automated version of (2)-- would work, but it's still difficult.
Diversions
04-12-2008, 10:02 PM
Gee, I forgot all about that one! It was a bit ago wasn't it! LOL No worries. Actually those are both excellent ideas. I am transitioning all of my sites from FrontPage to PHP and Mysql database so I will be able to incorporate them.
Thank you both.
D
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.