Registry / utility / lucene-core

lucene-core

JSON →
library10.3.2javamavenunverified

Core library of the Apache Lucene search engine, providing indexing and search capabilities.

<dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-core</artifactId> <version>10.3.2</version> </dependency>
INSTALL
IMPORT
SIG · LUCENE-CORE
L
lucene-core
utilityjavav10.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IndexWriter
org.apache.lucene.index.IndexWriter

Minimal example creating an IndexWriter with a RAM directory and standard analyzer.

import org.apache.lucene.index.IndexWriter; import org.apache.lucene.index.IndexWriterConfig; import org.apache.lucene.store.Directory; import org.apache.lucene.store.RAMDirectory; import org.apache.lucene.analysis.standard.StandardAnalyzer; public class Quickstart { public static void main(String[] args) throws Exception { Directory dir = new RAMDirectory(); IndexWriterConfig config = new IndexWriterConfig(new StandardAnalyzer()); IndexWriter writer = new IndexWriter(dir, config); // add documents writer.close(); } }
Debug
Known issues
breakingLucene 10.x has breaking API changes compared to 8.x and 9.x, including removal of deprecated classes and changes to analysis APIs.
fix
Consult the Lucene migration guide when upgrading from older versions.
affects: >=10.0.0
Upgrade
Version history
10.3.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lucene-core — mvn dependency:get lucene-core · libregistry