Aurélien Pupier created CAMEL-23141:
---------------------------------------
Summary: Upgrade to Lucene 10.x
Key: CAMEL-23141
URL: https://issues.apache.org/jira/browse/CAMEL-23141
Project: Camel
Issue Type: Task
Components: camel-lucene
Affects Versions: 4.19.0
Reporter: Aurélien Pupier
initially it wasn't upgraded as JDK 21 was the minimal version
https://github.com/apache/camel/pull/15953#issuecomment-2413256602
we can now upgrade with Camel 4.19
Note that there are also some API break to adapt:
{noformat}
Error: Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.15.0:compile (default-compile)
on project camel-lucene: Compilation failure: Compilation failure:
Error:
/home/runner/work/camel/camel/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneSearcher.java:[72,54]
cannot find symbol
Error: symbol: method doc(int)
Error: location: variable indexSearcher of type
org.apache.lucene.search.IndexSearcher
Error:
/home/runner/work/camel/camel/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneSearcher.java:[92,62]
cannot find symbol
Error: symbol: method create(int,int)
Error: location: class org.apache.lucene.search.TopScoreDocCollector
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)