[
https://issues.apache.org/jira/browse/CAMEL-23141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aurélien Pupier reopened CAMEL-23141:
-------------------------------------
Due to JDK 17 being back to supported version in 4.19, need to revert the
change. keeping the commit cautionly to reuse them when we will drop jdk 17
(again and for real)
> 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
> Assignee: Jono Morris
> Priority: Major
> Fix For: 4.19.0
>
>
> 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)