This project started as a fork of lucene-leveldb. Now it's heavily refactored and offers different lucene directory implementations.
Lucene directory that uses MVStore as storage.
Lucene directory that uses Facebooks RocksDB as storage.
Lucene directory that uses Googles Leveldb as storage.
Requirements:
- Java 11+
- Lucene 8.0+
Path path = Paths.get("db-data");
File indexDir = path.toFile();
Directory directory = DBDirectories.leveldb(path);
StandardAnalyzer analyzer = new StandardAnalyzer();
IndexWriterConfig indexWriterConfig = new IndexWriterConfig(analyzer);
IndexWriter writer =
new IndexWriter(directory, indexWriterConfig);
directory.close();