BT

InfoQ Homepage News Clustering Lucene with TerraCotta

Clustering Lucene with TerraCotta

Bookmarks

Engineers at TerraCotta have detailed a new way to cluster lucene, the popular text search library from Apache. Their method involves implementing the lucene RAMDirectory interface and using TerraCotta DSO to share the RAMDirectory across JVMs.

Lucene is a popular, open-source text search library. There are several existing strategies to clustering Lucene. Steve and Orion at TerraCotta noted that it was used in several of the products they use in house and so decided it would be a good test of their clustering software. They first tried to cluster the lucene IndexWriter directly but they ran into some problems and so switched to using RAMDirectory.

Orion describes the RAMDirectory approach as being straightforward:

As you can see, dealing with the index is pretty simple. This example code isn't really any different with clustering enabled than it is without clustering. In fact, turning clustering on and off is as simple as invoking java with or without a couple of Terracotta options.

Orion has provided some example code, which he admits is unpolished, and promises to post a cleaned up version along with instructions soon.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • All clean

    by ARI ZILKA /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Orion has posted a cleaned up version for others to take advantage of:
    orionl.blogspot.com/

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.