Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
adding site search function to your page
Old 09-09-2009, 12:20 PM adding site search function to your page
Junior Talker

Posts: 3
Name: James
Trades: 0
Hello,

I am trying to add a site search to my web page and have run into some problems. At first I was going to write my own script that would run through my databases and try to match keywords, but upon further research found that there is a better way.

I have seen and downloaded scripts that will "crawl" your website and then store that information in a database. The crawler and search script allows you to search the content of your site and presents you with links to the pages with matching words.

I have used yahooapi's which are cool, but they are not directory specific. It works on the main domain, but I have a couple sites on my domain i. e. <removed> and <removed>

Is there a script or a how-to that will allow me to create a site search that will crawl and search the pages within a specific directory?

If anyone has some input on what direction I should take I would greatly appreciate the info. Thanks.

Last edited by chrishirst; 09-09-2009 at 03:59 PM..
jcathcart is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-11-2009, 12:00 PM Re: adding site search function to your page
Junior Talker

Posts: 3
Name: James
Trades: 0
So does anyone here use a sites-search script? If so is it available for free?

Site-search capability seems to pretty fairly common and is something I'd like to learn, has anybody heard much about how to accomplish this?

I'd write it myself, but I don't really know how they function, code-wise.

Anybody heard of anything?
jcathcart is offline
Reply With Quote
View Public Profile
 
Old 09-11-2009, 04:10 PM Re: adding site search function to your page
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Since I always use pre-made CMS's and frameworks, I've never really had any experience with this, since the software usually does it all for me. You could set up a Google Custom Search Engine or something like that, especially seeing that what you'd like to do is pretty complicated (or at the very least seems to be).
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 09-16-2009, 08:26 AM Re: adding site search function to your page
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
In simple language, what you want to do is...

a) store keyword(s)/text in database

b) allow those keywords to be scraped by a query to database

c) return value(s) via result w/link(s) to relevant page(s)


You may wish to omit common words such as "the", "and", "or", "if", etc.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 09-16-2009, 09:05 AM Re: adding site search function to your page
Average Talker

Posts: 23
Name: Mary North
Trades: 0
Quote:
Originally Posted by stevej View Post
Since I always use pre-made CMS's and frameworks, I've never really had any experience with this, since the software usually does it all for me. You could set up a Google Custom Search Engine or something like that, especially seeing that what you'd like to do is pretty complicated (or at the very least seems to be).

Steve you are right. Instead of coding, you can just install the Google Custom Search Function on your site. That will save you a lot of sleepless nights
__________________

Please login or register to view this content. Registration is FREE
marynorth21 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to adding site search function to your page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20211 seconds with 12 queries