Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Lucene search engine plugin - now with Java! Code advice appreciated

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 967 Views
  • Darren Inwood
    Avatar
    Community Member
    12 Posts

    Lucene search engine plugin - now with Java! Code advice appreciated Link to this post

    Hi everyone

    If anyone wants to have a play, I'm working on a new branch of my Lucene search engine plugin:

    http://code.google.com/p/lucene-silverstripe-plugin/source/browse/#svn%2Fbranches%2Fjava-integration

    This branch uses the official Apache Lucene java code. It indexes around 50x faster than the current Zend PHP port, and I have it running searches in about 60us on a test database of 200,000 items. Sorry, no setup instructions as yet, but basically just have Java installed and run it on a linux box with port 8080 open and you should be fine.

    Any code advice/criticism appreciated, in particular I'm not so sure how to go about letting devs acquire an instance of the Lucene class. At the moment I'm stuck with having a single default config set as a static, and using a static singleton method to get the singleton instance. I'd love to allow devs to use several instances with different configurations, probably via a registry / factory, unless anyone knows better.

    Cheers!

  • Tuckie
    Avatar
    Community Member
    10 Posts

    Re: Lucene search engine plugin - now with Java! Code advice appreciated Link to this post

    Very cool, I'll definitely give this a go at some point.

    967 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.