Upgrading to ES client 1.7.1 from 1.5.0, lucene?

Hi all,

Apologies if this is documented, I did try and look for it :wink:

I'm using maven and upgrading my client to 1.7.1 from 1.5.0 and it appears that lucene is not included as a transitive dependency anymore. Is that true? Should I be including lucene myself and, if so, what version?

Thanks for any help!

Just to show what I'm talking about, here is 'mvn dependency:tree' output for 1.6.2:

[INFO] +- org.elasticsearch:elasticsearch:jar:1.6.2:compile
[INFO] |  +- org.apache.lucene:lucene-core:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-analyzers-common:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-queries:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-memory:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-highlighter:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-queryparser:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-sandbox:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-suggest:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-misc:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-join:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-grouping:jar:4.10.4:compile
[INFO] |  +- org.apache.lucene:lucene-spatial:jar:4.10.4:compile
[INFO] |  |  \- com.spatial4j:spatial4j:jar:0.4.1:compile
[INFO] |  +- org.antlr:antlr-runtime:jar:3.5:compile
[INFO] |  +- org.ow2.asm:asm:jar:4.1:compile
[INFO] |  +- org.ow2.asm:asm-commons:jar:4.1:compile
[INFO] |  \- org.yaml:snakeyaml:jar:1.12:compile

and here is 'mvn dependency:tree' output for 1.7.1:

[INFO] +- org.elasticsearch:elasticsearch:jar:1.7.1:compile

Can we see your Maven dependency list? Or at least any that are related to Elasticsearch?

I just tried this locally with a barebones pom file and I got the expected transitive dependencies:

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ elasticsearch-groovy ---
[INFO] org.elasticsearch:elasticsearch-groovy:jar:1.0.0
[INFO] \- org.elasticsearch:elasticsearch:jar:1.7.1:compile
[INFO]    +- org.apache.lucene:lucene-core:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-analyzers-common:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-queries:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-memory:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-highlighter:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-queryparser:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-sandbox:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-suggest:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-misc:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-join:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-grouping:jar:4.10.4:compile
[INFO]    +- org.apache.lucene:lucene-spatial:jar:4.10.4:compile
[INFO]    |  \- com.spatial4j:spatial4j:jar:0.4.1:compile
[INFO]    +- org.antlr:antlr-runtime:jar:3.5:compile
[INFO]    +- org.ow2.asm:asm:jar:4.1:compile
[INFO]    +- org.ow2.asm:asm-commons:jar:4.1:compile
[INFO]    \- org.yaml:snakeyaml:jar:1.12:compile

This is the pom.xml file in its entirety:

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.elasticsearch</groupId>
  <artifactId>elasticsearch-groovy</artifactId>
  <version>1.0.0</version>
  <dependencies>
    <dependency>
      <groupId>org.elasticsearch</groupId>
      <artifactId>elasticsearch</artifactId>
      <version>1.7.1</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>

Ok, thanks Chris, I appreciate the posting, I did the same last night and found the same as you. So there must be something going on in our poms. Odd that it happens with 1.7+ and not with 1.6-. I'll get to the bottom of this and post back what I find.

Thanks again!