# Migrating from HLRC 7.17 to Java Client 8.13 - missing PercolateQueryBuilder

**URL:** <https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [August 17, 2022, 2:50pm UTC](https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300 "2022-08-17T14:50:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![javierco](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@javierco](https://discuss.elastic.co/u/javierco)\
**Post date:** [August 17, 2022, 2:50pm UTC](https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300/1 "2022-08-17T14:50:19Z")

</div>

I'm testing the migration of the Java api for High Level Rest Client version 7.17 into the new Java API Client 8.3 and I'm having problems finding the equivalent to: org.elasticsearch.percolator.PercolateQueryBuilder;

Looks like this is deja vu, as we had to migrate from an old Java API to the "new" HLRC just a few years ago ☹

any help is appreciated, thanks!!

---

<div class="post-metadata">

**Author:** ![swallez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swallez/32/11972_2.png) [@swallez](https://discuss.elastic.co/u/swallez)\
**Post date:** [August 17, 2022, 3:48pm UTC](https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300/2 "2022-08-17T15:48:15Z")

</div>

It's at [PercolateQuery (java-client 8.3.3 API)](https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/8.3.3/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.html)

---

<div class="post-metadata">

**Author:** ![javierco](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@javierco](https://discuss.elastic.co/u/javierco)\
**Post date:** [August 17, 2022, 5:25pm UTC](https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300/3 "2022-08-17T17:25:09Z")

</div>

Thank you Sylvain, i was able to find that class. However, it looks like that class is to use with the new 8.3 Client version.

I'm trying to use the transition strategy that says: "keep the existing code as-is and use the new Java API Client for new features in your application, then later migrate the existing code" Is there a way to keep the Percolator builder to work with 7.17?

Thanks again!

---

<div class="post-metadata">

**Author:** ![javierco](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@javierco](https://discuss.elastic.co/u/javierco)\
**Post date:** [August 18, 2022, 4:58pm UTC](https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300/4 "2022-08-18T16:58:18Z")

</div>

UPDATE: I was able to resolve the issue by including the 7.17 version of the percolator library:

```auto
        <dependency>
            <groupId>org.elasticsearch.plugin</groupId>
            <artifactId>percolator-client</artifactId>
            <version>7.17.4</version>
        </dependency>

```

Now my code works with the HLRC v7 (including percolator) using a cluster on 8.3.3 version 🙂

Thanks all!

---

<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:** [September 15, 2022, 4:59pm UTC](https://discuss.elastic.co/t/migrating-from-hlrc-7-17-to-java-client-8-13-missing-percolatequerybuilder/312300/5 "2022-09-15T16:59:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
