Re: Re: New search related question

From: Date: Mon, 04 Feb 2008 21:12:34 +0000
Subject: Re: Re: New search related question
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-268677@lists.php.net to get a copy of this message
OP didn't ask for the "best search tool". Back to the horror of cron jobs to updatedb (or were you being sarcastic?) :-) I am familiar with using (s)locate to find files by name etc... But I haven't seen how to index and search file contents. man is no help and I didn't get any google love either. This would indeed be cool. -Shawn Greg Donald wrote: > On 2/4/08, Shawn McKenzie <nospam@mckenzies.net> wrote: >> I agree that htdig may be a better solution, however his current >> solution requires upkeep if the static HTML is changed and requires that >> the person populating the database pick all relevant words from the page >> and if new ones are added to update the db. > > Oh the horror of setting up cron jobs and stopwords. > >> Unless, by FULLTEXT, you're implying that the full text of each page >> should be in the db, then I would argue that there is negligible diff >> between that and the grep. > > Here, let me connect the logic for you. > > Q. If grep was the best search tool then why did slocate get invented? > A. Indexes. > > A MySQL index doesn't go away in between requests. > >

« previous php.general (#268677) next »