Re: Search Engine

From: Date: Wed, 16 Jan 2002 20:37:24 +0000
Subject: Re: Search Engine
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80814@lists.php.net to get a copy of this message
If I wanted to do a search engine for the web (and maybe for just a site) I would set up a MySQL database and have a record for each site which is included in the index. There would be fields for URL, Page title, Keywords and maybe description / text extract from the URL. It would be quite a simple solution and I'm not sure about performance. It would be quite easy to add /modify/delete records as well using this method "Greg Schnippel" <gschnippel@forumone.com> wrote in message news:167A8E86FDBBC543A6B88985A430D5F51B642B@pluto.forumone.com... > * On 15-01-02 at 12:09 > * Yogesh Mahadnac said.... > >> Hi all! I want to develop a search engine in PHP for a >> portal that I'm working on at the moment, and I'd be glad if >> someone could please show me how to do it, or if anyone knows >> of a link where i can find a tutorial for that. > > I don't think PHP is really a very good language for a genuine www > search engine. (although it works very well on site-wide basis) > I'm sure more knowledgeable people than I can make some alternative > suggestions but I'm certain that PHP won't be the best tool > for the job. I would concur with what everyone else is saying. If you need a search engine and you have system-level access on your machine, your best bet is to set up either htdig or mnogosearch (open source search engine packages) because they already have done the hard work of figuring out fuzzy matching and search ranking. http://www.htdig.org/ http://mnogosearch.org/ Alternatively, if you are using a database you can use some tricky sql statements to search your records for the user's search query. Here's a good tutorial that should get you started on this route: http://www.devshed.com/Server_Side/PHP/Search_Engine/page1.html -schnippy

« previous php.general (#80814) next »