RE: building a search engine ??

From: Date: Thu, 12 Jul 2001 17:38:27 +0000
Subject: RE: building a search engine ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57613@lists.php.net to get a copy of this message
You might also take a look at: http://www.php.net/manual/en/ref.mnogo.php On Thu, 12 Jul 2001, scott [gts] wrote: > and to answer one of the previous questions, > > yes... it is *very* resource intensive to scan an entire > directory tree full of files every single time a user > wants to search.... > > as far as i know, htdig indexes the information into one > big file, and just reads thru that... which will save you > loads of disk accesses and generally speed up search > queries mucho... > > not to mention that allowing any users to submit data on > a web form and then use that data in a command line tool > is asking for trouble... :) > > best of luck. > > > -----Original Message----- > > From: Miles Thompson [mailto:milesthompson@ns.sympatico.ca] > > Sent: Thursday, July 12, 2001 8:46 AM > > To: void; php-general@lists.php.net > > Subject: Re: [PHP] building a search engine ?? > > > > > > > > Why reinvent the wheel? Use htdig or one of the other open source search > > engines. There's a memo on the htdgi site on integrating PHP and htdig. > > > > Miles Thompson > > > > At 02:26 PM 7/12/01 +0200, void wrote: > > >I am thinking of building a search engine with the grep command for our > > >site. > > >i have my information in a mysql db, > > >but i am putting it back into text files. > > >reoson being is that maybe the mysql db goes down under hevy load, > > >and then our site would look like a tree with out branches. > > >So i put all the info in the text files. > > > > > >now for the search engine i have a form that posts of the pattern. > > >on the page receiving this pattern as say $searchpattern > > >i do the command > > >grep --binary-files=without-match -lri "$searchpattern" $path > > > > > >is this too resource intensive ? > > > > > >How does this idea sound ? > > > > > >please let me know. > > >thanx in advance for any replies. > > > > > >Cape Town South Africa > > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > >PHP General Mailing List (http://www.php.net/) > > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > >For additional commands, e-mail: php-general-help@lists.php.net > > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#57613) next »