Registry / utility / lucene-analyzers-common

lucene-analyzers-common

JSON →
library8.11.4javamavenunverified

Additional Analyzers provides common text analysis components for Apache Lucene.

<dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-analyzers-common</artifactId> <version>8.11.4</version> </dependency>
INSTALL
IMPORT
SIG · LUCENE-ANALYZERS-C
L
lucene-analyzers-common
utilityjavav8.11.4
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.

StandardAnalyzer
org.apache.lucene.analysis.standard.StandardAnalyzer

Tokenizes text using Lucene's StandardAnalyzer.

import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; import java.io.StringReader; public class Quickstart { public static void main(String[] args) throws Exception { StandardAnalyzer analyzer = new StandardAnalyzer(); TokenStream stream = analyzer.tokenStream("field", new StringReader("Hello World")); CharTermAttribute term = stream.addAttribute(CharTermAttribute.class); stream.reset(); while (stream.incrementToken()) { System.out.println(term.toString()); } stream.close(); analyzer.close(); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.11.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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