kosearch – Zend Lucene Search module for Kohana framework

I’ve finally got round to releasing kosearch – a Kohana search module. It’s an implementation of Zend (Lucene) Search, a file-based search/index solution. kosearch provides a simple way to index and search Models. It’s perfect for a web site that might contain news, products etc. kosearch also exposes the underlying Zend libraries so that other things can be indexed – PDFs, web pages, Word docs etc.

The module comes complete with a demo and details of how to use the module.

The module is available for download on github.

The kosearch module has been written for, and tested against Kohana 2.3.4.

All comments and feedback appreciated

7 Comments

t0th commented on August 12th, 2010 at 9:25 pm

Hi,

what is the diferente between kosearch and cache?

thanks

badlyDrawnToy commented on August 18th, 2010 at 4:08 pm

kosearch is made from chalk and cache is from cheese

um.. kosearch is a search index. Nothing to do with caching

anthony commented on October 12th, 2010 at 9:34 pm

Hi, Thanks for putting this together. I have it working perfectly, but I’m wondering if you have tried paginating the results with Kohana’s pagination library or perhaps something else? If so, do you have an example?

Thanks again!

badlyDrawnToy commented on October 13th, 2010 at 9:41 am

Hi Anthony. glad you find the library useful. To be honest, I’ve not much Kohana dev for a while= and I’ve not looked into pagination. However, I’ve just completed a large Zend project and we used Lucene extensively. Zend PAgination comes with an adapter for Lucene.

I took a quick look at the Kohana pagination library. Shouldn’t be too difficult to extend for Lucene, or even easier to write your own Pagination class. The key difference is that whereas SQL queries use LIMIT and OFFSET, with Lucene, you always return the full number of hits

JayGreentree commented on December 1st, 2010 at 5:15 am

thanks for your Kohana Search project but I seem to be having issues getting it to work I’ve followed all the directions but keep getting errors about the Zend files not existing even though they are uploaded as you had mentioned.

kajib commented on December 2nd, 2010 at 5:34 pm

Hey, i am really need your help ! I want to know how to integrate kosearch with the latest version of kohana its rather different with your previous tuts

badlyDrawnToy commented on December 2nd, 2010 at 6:17 pm

Hi. I’ve not had a chance to upgrade to v3, but I did recently notice that someone has re-implemented it. Shame they never bothered to let me know.

Take a look here: https://github.com/evopix/kohana-search

Colophon

badlyDrawnToy is the blog of Howie Weiner, a freelance web developer, based in Manchester.

Howie specialises in Django, PHP and Java web application development.

This site is no longer updated. You can now follow Howie at howieweiner.co.uk

View Howie Weiner's profile on LinkedIn
View Howie's twitter feed

Tags