# Upgrading to ES client 1.7.1 from 1.5.0, lucene?

**URL:** https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577
**Category:** Elasticsearch
**Created:** [July 30, 2015, 3:05pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577 "2015-07-30T15:05:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![cching](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cching/32/44800_2.png) [@cching](https://discuss.elastic.co/u/cching)
#### Post date: [July 30, 2015, 3:05pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577/1 "2015-07-30T15:05:27Z")

</div>

Hi all,

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

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!

---

<div class="post-metadata">

### Author: ![cching](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cching/32/44800_2.png) [@cching](https://discuss.elastic.co/u/cching)
#### Post date: [July 30, 2015, 3:18pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577/2 "2015-07-30T15:18:55Z")

</div>

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
```

---

<div class="post-metadata">

### Author: ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)
#### Post date: [July 30, 2015, 11:18pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577/3 "2015-07-30T23:18:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)
#### Post date: [July 30, 2015, 11:30pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577/4 "2015-07-30T23:30:29Z")

</div>

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>
```

---

<div class="post-metadata">

### Author: ![cching](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cching/32/44800_2.png) [@cching](https://discuss.elastic.co/u/cching)
#### Post date: [July 31, 2015, 1:19pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577/5 "2015-07-31T13:19:49Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:57pm UTC](https://discuss.elastic.co/t/upgrading-to-es-client-1-7-1-from-1-5-0-lucene/26577/6 "2017-07-05T23:57:58Z")

</div>


