Class GaeDirectory

All Implemented Interfaces:
Closeable, AutoCloseable

public class GaeDirectory extends BaseDirectory
Lucene Directory working in google app engine (GAE) environment. Using this Directory you can create multiple indexes, each one identified by a name specified in constructor GaeDirectory(LaeContext, String), for details read constructor documentation. In order to open an index writer is highly recommended the usage of configuration provided by GaeLuceneUtil.getIndexWriterConfig(org.apache.lucene.analysis.Analyzer).
 
 GaeDirectory directory = new GaeDirectory();
 IndexWriterConfig config = GaeLuceneUtil.getIndexWriterConfig(Version.LATEST, analyzer);
 IndexWriter writer = new IndexWriter(directory, config);
 
 

If your application throws NoClassDefFoundError while using GaeDirectory in order to make it work, into your GAE web application, the modified RamUsageEstimator (link to source) in a package named org.apache.lucene.util.
Author:
Fabio Grucci (github: UltimaPhoenix, bitbucket: Dark_Phoenix, googlecode: fabio.grucci)
See Also: