# Migrating from java client 1.4.2 to the 8 client

**URL:** <https://discuss.elastic.co/t/migrating-from-java-client-1-4-2-to-the-8-client/366949>\
**Category:** Elasticsearch\
**Created:** [September 23, 2024, 9:26am UTC](https://discuss.elastic.co/t/migrating-from-java-client-1-4-2-to-the-8-client/366949 "2024-09-23T09:26:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![intrepid1](https://avatars.discourse-cdn.com/v4/letter/i/dbc845/32.png) [@intrepid1](https://discuss.elastic.co/u/intrepid1)\
**Post date:** [September 23, 2024, 9:26am UTC](https://discuss.elastic.co/t/migrating-from-java-client-1-4-2-to-the-8-client/366949/1 "2024-09-23T09:26:49Z")

</div>

Hi there,

I have been tasked with migrating an ancient Elasticsearch v1.5.1 cluster and the associated java service using the Elasticsearch 1.4.2 java client (elasticsearch-1.4.2.jar). Whilst the migration of the cluster was relatively easy, the client is proving much harder.

At the moment, I am trying to evaluate the amount of work needed and I want to see how the classes evolve from version to version. For example.

```auto
[org.elasticsearch.index.query.FilteredQueryBuilder](https://javadoc.io/static/org.elasticsearch/elasticsearch/2.4.0/org/elasticsearch/index/query/FilteredQueryBuilder.html)

*Use [`BoolQueryBuilder`](https://javadoc.io/static/org.elasticsearch/elasticsearch/2.4.0/org/elasticsearch/index/query/BoolQueryBuilder.html) instead.* 

```

However the earliest that I can go back to is version 2.4 and I cannot see the evolution before that. I know some of the classes below don't even make it to 2.4 but I can't find out what their replacements are.

We don't use a huge amount of classes.

```auto
import org.elasticsearch.index.query.BaseFilterBuilder;
import org.elasticsearch.index.query.BaseQueryBuilder;
import org.elasticsearch.index.query.BoolFilterBuilder;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.FilterBuilders;
import org.elasticsearch.index.query.FilteredQueryBuilder;
import org.elasticsearch.index.query.MatchQueryBuilder;
import org.elasticsearch.index.query.PrefixQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.index.query.TermFilterBuilder;

```

I was wondering whether anyone else had gone through a similar process and would be able to guide me as to where I may find this missing documentation.

Thank you.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 23, 2024, 10:37am UTC](https://discuss.elastic.co/t/migrating-from-java-client-1-4-2-to-the-8-client/366949/2 "2024-09-23T10:37:40Z")

</div>

May be this could help:

> **[Switching from the Java High Level Rest Client to the new Java API Client](https://www.elastic.co/blog/switching-from-the-java-high-level-rest-client-to-the-new-java-api-client)**
>
> Let's say you have a Java project using Elastic 7.17 and the deprecated High Level Rest Client (HLRC). You have been asked to switch to Elastic 8.11 but the HLRC does not exist for this version. This ...

---

<div class="post-metadata">

**Author:** ![intrepid1](https://avatars.discourse-cdn.com/v4/letter/i/dbc845/32.png) [@intrepid1](https://discuss.elastic.co/u/intrepid1)\
**Post date:** [October 17, 2024, 3:14pm UTC](https://discuss.elastic.co/t/migrating-from-java-client-1-4-2-to-the-8-client/366949/3 "2024-10-17T15:14:04Z")

</div>

Hi David,

Thanks for the suggestion. I have read this and Elasticsearch has also managed to find the documentation. I will now be able to see how it evolves from 1.4.2 to 2.0 and then any changes subsequent to that. Documentation exists above version 2.0.

I think I have a way forward now although it is still a big task.

Kind regards,

Matthew
