Re: Search problem on no2.php.net

From: Date: Tue, 12 Jul 2005 14:03:55 +0000
Subject: Re: Search problem on no2.php.net
References: 1 2 3 4 5 6  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-28725@lists.php.net to get a copy of this message
Gabor Hojtsy wrote: >>Also, I made a mistake above, control-structures.for has a search >>priority of 4 for "for" instead of 5, as it doesn't need to use the >>metaphone equivilent "FR" (4+1). >> >>When the search is done, it searches for both the original pattern and >>its metaphone equivilent. Another solution could be to search for just >>the original pattern first, and if that fails to find anything then >>search for metaphones? This would avoid having to touch the prio's in >>the database. >> >> > >Dave, could you please prepare a patch with this approach to fix the >problem? > >Goba > > Attached (assuming this list allows text attachments, <fingers crossed>). Patch 1 is the approach you asked me to use. I think it might be the wrong approach as it means more workload for the mirrors (two SQL queries instead of one in some cases), whereas Patch 2 just changes the priorities of metaphone keywords in the database (which would have to be regenerated, of course). Up to you which one you want to use! Dave

« previous php.mirrors (#28725) next »