Glad to announce that I managed to integrate Zend_Search_Lucene with Seagull framework. I used bridge pattern to close the gap to it, and have written a little IndexBuilder class that makes use of strategies to harvest search targets. Made a strategy for articles in database so they are searchable.
Was a bit concerned about performance side of the thing, just imagine that ZF uses Apache Lucene`s java based search engine & I made a wrapper around a wrapper, sound pretty silly btw :) On win box I needed quite a few seconds do generate/search even small indices. The biggest surprise came when I made it in work on linux (debian/vserver) server, its lightning fast, so slowness on win is probably a local environmental issue. The index size is really acceptable (if you design fields of documents correctly), so it scales well.
Most people use LIKE SQL queries for searches, it has serious limitations (it is enough for simple cases), example: search in multiple fields, various boost factors.
More still to come (release/wiki), if somebody needs it badly leave a message here
Showing posts with label Seagull Zend_Search_Lucene Zend Framework php. Show all posts
Showing posts with label Seagull Zend_Search_Lucene Zend Framework php. Show all posts
Tuesday, May 29, 2007
Subscribe to:
Posts (Atom)
