Fulltext search of php site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vybralk
Forum Newbie
Posts: 3
Joined: Wed May 19, 2010 8:13 am

Fulltext search of php site

Post by vybralk »

Hi,
i have site completely written in PHP. Now i want to add fulltext search. My idea how to do it is browse through all pages, save them in mysql database and then using SQL to implement fulltext search. I don't want to reinvent the wheel, i think that there should be easier solution....or no !?

thanks
K
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Fulltext search of php site

Post by cpetercarter »

Are your web pages searchable by Google? If they are, the easiest thing is to let Google catalogue your site. Then all you need to do is to provide a Google search box with a "search this site " option. See this.
vybralk
Forum Newbie
Posts: 3
Joined: Wed May 19, 2010 8:13 am

Re: Fulltext search of php site

Post by vybralk »

google is a option, but i preffer solution not dependent on google indexing as the pages could change quite often and not sure how often google reindex sites.
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Fulltext search of php site

Post by cpetercarter »

You can create and submit a sitemap to Google and resubmit every time your site changes. Or, if you run a blog, you can ping Google when you have new material. Google does search very well. Why reinvent the wheel?
Post Reply