Registry / utility / lucene-expressions

lucene-expressions

JSON →
library10.4.0javamavenunverified

Provides expression-based scripting for Apache Lucene search library.

<dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-expressions</artifactId> <version>10.4.0</version> </dependency>
INSTALL
IMPORT
SIG · LUCENE-EXPRESSIONS
L
lucene-expressions
utilityjavav10.4.0
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.

Expression
org.apache.lucene.expressions.Expression

Compiles a simple Lucene expression using JavascriptCompiler.

import org.apache.lucene.expressions.Expression; import org.apache.lucene.expressions.js.JavascriptCompiler; public class LuceneExpressionExample { public static void main(String[] args) throws Exception { Expression expr = JavascriptCompiler.compile("_score * 2"); System.out.println("Expression compiled: " + expr); } }
Debug
Known issues
breakingLucene 10.x has breaking changes from 9.x, including package restructuring.
fix
Update imports and check migration guide when upgrading from older versions.
affects: >=10.0.0
Upgrade
Version history
10.4.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
lucene-expressions — mvn dependency:get lucene-expressions · libregistry