Integrations - Lucene |
rate-12980-76826
| Article Rating? |
|
|
|
| Module Type |
Included with Terracotta |
| Module Name |
clustered-lucene-2.0.0 |
| Module Version |
2.5.2 |
| Since |
Terracotta 2.3 |
| Download |
Lucene 2.0.0 Config Module is included with the main Terracotta Kit |
Introduction
Lucene
- "The Apache Lucene project develops open-source search software."
What is supported
This module was written and tested against Lucene 2.0.0
How it's implemented
The Clustered Lucene module provides a fragment of Terracotta configuration to instrument
the classes under the org.apache.lucene.store package. It also specifies lock
configurations for the org.apache.lucene.store.RAMDirectory and
org.apache.lucene.store.RAMOutputStream classes.
To examine this fragment, you may extract the file named terracotta.xml from the Clustered
Lucene module's jar file, which can be found in the modules directory of a Terracotta
installation.
How to use it
Add the following line to the <modules> section of your tc-config.xml file:
<modules>
<module name="clustered-lucene-2.0.0" version="2.5.2"/>
</modules>
Examples
Client apps will need to declare a RAMDirectory field, and mark it as root.
You may check out, via Subversion, a sample app using the Clustered Lucene module from: http://svn.terracotta.org/svn/forge/projects/labs/terracotta-lucene-examples/trunk/terracotta-lucene-examples