[
https://issues.apache.org/jira/browse/JENA-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16673657#comment-16673657
]
Code Ferret commented on JENA-1621:
-----------------------------------
So far upgrading to Lucene 7.5.0 does not present an immediate problem to
jena-text - the tests all pass.
However, @[ Anuj
Kumar|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=anujkumar]
{{jena-text-es}} is a problem. The current version of elasticsearch in the
{{jena-text-es/pom.xml}} is 5.2 which is built with Lucene 6.4.1. The next
released version of elasticsearch, 6.5.0, will be built w/ {{Lucene 7.5.0}}
(which was released 24 September 2018). The latest released version of
elasticsearch is 6.4.2 which is built against Lucene 7.4.x.
Changing the {{ver.lucene}} to 7.4.0 and the {{ver.elasticsearch}} to 6.4.2 in
{{jena/pom.xml}} and the version for the
{{<artifactId>elasticsearch-maven-plugin</artifactId>}} to 6.4 in
{{jena-text-es/pom.xml}} and clearing {{~/.m2/repository}} leads to:
{noformat}
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ jena-text-es
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to
/Users/chris/git/jena/jena-text-es/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/chris/git/jena/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java:[37,42]
cannot find symbol
symbol: class InetSocketTransportAddress
location: package org.elasticsearch.common.transport
[ERROR]
/Users/chris/git/jena/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java:[137,22]
cannot find symbol
symbol: class InetSocketTransportAddress
location: class org.apache.jena.query.text.es.TextIndexES
[ERROR]
/Users/chris/git/jena/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java:[139,21]
cannot find symbol
symbol: class InetSocketTransportAddress
location: class org.apache.jena.query.text.es.TextIndexES
[ERROR]
/Users/chris/git/jena/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java:[139,59]
cannot find symbol
symbol: class InetSocketTransportAddress
location: class org.apache.jena.query.text.es.TextIndexES
[ERROR]
/Users/chris/git/jena/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java:[143,17]
cannot find symbol
symbol: class InetSocketTransportAddress
location: class org.apache.jena.query.text.es.TextIndexES
[ERROR]
/Users/chris/git/jena/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java:[143,68]
cannot find symbol
symbol: class InetSocketTransportAddress
location: class org.apache.jena.query.text.es.TextIndexES
[INFO] 6 errors
{noformat}
So evidently later versions of {{elasticsearch}} have replaced
{{org.elasticsearch.common.transport.InetSocketTransportAddress}} with some
other functionality.
This problem needs to be fixed and I don't immediately have the time to dig
into.
That still leaves the issue of Lucene 7.5.x vs 7.4.x. It seems somewhat of a
waste to try and upgrade to 7.4.x and then immediately upgrade to 7.5.x.
Hopefully, [~anujkumar] will have a handle on when elasticsearch 6.5.x will be
released with its Lucene 7.5.x dependency.
Thus far upgrading to 7.5.x appears straightforward with the exception of
{{jena-text-es}}
What do others think?
> Upgrade Lucene to 7.5.x
> -----------------------
>
> Key: JENA-1621
> URL: https://issues.apache.org/jira/browse/JENA-1621
> Project: Apache Jena
> Issue Type: Improvement
> Components: Text
> Affects Versions: Jena 3.9.0
> Reporter: Andy Seaborne
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)