From yuri at sims.berkeley.edu Wed Aug 27 07:32:03 2008 From: yuri at sims.berkeley.edu (Yuri Takhteyev) Date: Wed Aug 27 07:44:57 2008 Subject: [Sputnik-list] sputnik search alpha Message-ID: fa4efbc00808270232k76ed0c0clf1ad707cddf9898e@mail.gmail.com
I implemented "dumb" search for Sputnik, which means simply scanning the nodes when a query is made, and while the performance is not stellar, it seems to be bearable for the sputnik site itself (193 nodes). This is without any caching, and it would of course be much faster with caching, when the queries are repeated. (Or, rather, the thing to do would probably be to catch matches for individual terms, and then and them.)
You can try it at http://sputnik.freewisdom.org/
The commits are:
http://gitorious.org/projects/sputnik/repos/mainline/commits/ebb92bb (the main code, 83 lines) http://gitorious.org/projects/sputnik/repos/mainline/commits/7f1cc73 (the search node, 10 lines)
You can enter multiple keywords which are treated as an implicit "and". There is no stemming or substring searching, but adding basic English stemming shouldn't be too complicated and shouldn't affect performance too much.
Should this come with Sputnik by default?
- yuri
-- http://sputnik.freewisdom.org/