Page 1 of 1

Plugin: Search with Lucene (Alpha, maybe dangerous)

Posted: Mon Aug 13, 2007 9:28 pm
by Boris
I had a working version of this for some time, but it suffered of extrem memory consumption on large blogs while generating the index. Now I had the time to solve this. There's still a lot work to do.
This release is made to get some attention, comments and criticism about the current state and perhaps some ideas or patches for future development.
README wrote:ALWAYS REMEMBER
This a highly experimental pre-alpha-version of the plugin.
Don't expect it to do anything but blow your whole installation in pieces.

REQUIRED
* PHP 5 (Zend Framework relies on this)
* A recent Zend Framework (>=1.0) installed in the folder bundled-libs (bundled-libs/Zend, I should be enough to have Zend/Search and Zend/Exception.php in there, the rest is not needed)
* Write permissions to templates_c/plugin_search_lucene
* A good BACKUP (just in case)

RECOMMENDED
* ctype-extension (used for letter/digit-recognition in UTF-8)
* mb-extension (used for multibyte string functions)
Both functions are worked around if missing, BUT this will happen at the cost of functionality and/or performance! (up to factor 20 slower with missing ctype!)

KNOWN BUGS
* Only unknown bugs at this time ;-)

PLEASE NOTE
* Search currenly is a hack and only works via a special URL
with URL-rewriting: http://example.com/search_lucene/my_term
without " : http://example.com/index.php?/search_lucene/my_term
* Check file templates_c/plugin_search_lucene.log for debug-information
You may download the plugin here (user: s9y, pass: serendipity, svn possible) and install it to your s9y. (I consider this plugin too unfinished and mainly untested to put it into the CVS where spartacus would fetch it for the broad audience)

So go ahead if you dare... ;-)


Changelog
EDIT 20070815: Updated quoted README to version 0.2

Re: Plugin: Search with Lucene (Alpha, experimental, dangero

Posted: Mon Aug 13, 2007 9:41 pm
by garvinhicking
Hi!

That looks pretty nifty. Gotta get a ZendFramework installed here to try it out. :)

Best regards,
Garvin

Posted: Wed Aug 15, 2007 11:56 am
by Boris
Now there's a new Version 0.2 online. I works for me with UTF-8 :), there's also a new option for Transliteration.

Check the updated Readme in my first posting for new information.


The next big thing would be a better search with a form, with this help or hints would be appreciated. :-)

Posted: Wed Aug 15, 2007 5:23 pm
by Boris
I added some more things:

* Autoresume while generating index
* short-words-filtering
* messages stored to display at the right place and not in a log-file

The installation of Zend Framework is really easy BTW. Just copy the Folder "Search" and the file "Exception.php" to a new Folder named "Zend" in bundled-libs. That's all.
If you receive errors with the index-dir (e.g. in safe-mode), try to create it yourself and give your webserver write-access.