# Alias search using RestHighLevel Client

**URL:** https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147
**Category:** Elasticsearch
**Created:** [April 28, 2020, 11:17am UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147 "2020-04-28T11:17:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![PraveenJala](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@PraveenJala](https://discuss.elastic.co/u/PraveenJala)
#### Post date: [April 28, 2020, 11:17am UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/1 "2020-04-28T11:17:33Z")

</div>

Hi,

I am using Elastic Search Rest Client 6.2.4.  
Can you help me with some example how to check if an alias exists using Rest Client and how to create alias using HighLevelRestClient.  
I have searched, but i couldn't found any examples related to this.

Thanks,  
Praveen.

---

<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: [April 28, 2020, 1:13pm UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/2 "2020-04-28T13:13:40Z")

</div>

Welcome!

I don't think this version of the client has this. You should anyway upgrade your cluster and the client to at least 6.8.

Then look at:

- [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/java-rest-high-exists-alias.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/java-rest-high-exists-alias.html)
- [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/java-rest-high-update-aliases.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/java-rest-high-update-aliases.html)

---

<div class="post-metadata">

### Author: ![PraveenJala](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@PraveenJala](https://discuss.elastic.co/u/PraveenJala)
#### Post date: [April 28, 2020, 2:00pm UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/3 "2020-04-28T14:00:07Z")

</div>

Thanks David.

Can you help me in answering the below question:

What are the advantages of migrating the client to RestHighLevelClient? Will the performance will improve or degrade.

---

<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: [April 29, 2020, 10:31am UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/4 "2020-04-29T10:31:21Z")

</div>

> [@PraveenJala](#):
>
> What are the advantages of migrating the client to RestHighLevelClient?

You are not migrating from the Low Level to the High Level Rest Client if this is what you meant. The High Level uses the Low Level client. It adds parsers to write and read Elasticsearch objects instead of letting you doing that manually.

---

<div class="post-metadata">

### Author: ![PraveenJala](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@PraveenJala](https://discuss.elastic.co/u/PraveenJala)
#### Post date: [April 29, 2020, 10:46am UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/5 "2020-04-29T10:46:54Z")

</div>

Sorry for not be clear in my question. I am referring to TransportClient.

---

<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: [April 29, 2020, 12:57pm UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/6 "2020-04-29T12:57:33Z")

</div>

There might be a difference but if there's really a big problem you can always start a local coordinating node which joins the cluster and use the rest client on localhost. Http test data will just be sent locally. The node will send the data to the cluster using the binary transport protocol.

Last thing: there's no other choice if you want to be ready for elasticsearch 8.x.

---

<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: [May 27, 2020, 12:57pm UTC](https://discuss.elastic.co/t/alias-search-using-resthighlevel-client/230147/7 "2020-05-27T12:57:33Z")

</div>

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