Re: phpweb documentation search

From: Date: Sat, 11 Dec 2010 11:43:56 +0000
Subject: Re: phpweb documentation search
References: 1 2 3  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9685@lists.php.net to get a copy of this message
On Sat, Dec 11, 2010 at 12:24, Hannes Magnússon <hannes.magnusson@gmail.com> wrote: > On Fri, Dec 10, 2010 at 21:15, Stewart Lord <stewey@ambitious.ca> wrote: >> Last year I wrote a specialized version of manual-lookup.php that had better scoring logic >> and was tweaked to run faster by creating a function cache. The intention at the time was to produce >> JSON output so that we could have a search as you type feature. >> >> I also wrote a version that used the PhD db, but it was slower and SQLite does not offer >> much to assist with text matching. I'm not sure SQLite is a good solution. A manual-lookup.php >> style search for the functions + a Google powered full-text search might work better and would avoid >> the many-variations-of-sqlite problem. >> > > > Do you still have the code for it somewhere? > I can't remember why we didn't actually implemented into current phpweb.. Hang on. Are you talking about the searchbox on prototype.php.net? It has a minor problem with method searching, and should probably prioritize hits that start with the same letters (i.e. 'strp' should rank strpbrk, strpos, and strptime before graphme_, mb_, and iconv_strpos). Other then that, it seems to work great.. Should we merge it to trunk? Like you said, we need a better manual-lookup.php too... -Hannes

« previous php.webmaster (#9685) next »