# Java High Level Rest Client Information

**URL:** https://discuss.elastic.co/t/java-high-level-rest-client-information/124896
**Category:** Google Summer of Code
**Created:** [March 21, 2018, 3:32am UTC](https://discuss.elastic.co/t/java-high-level-rest-client-information/124896 "2018-03-21T03:32:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![superav](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@superav](https://discuss.elastic.co/u/superav)
#### Post date: [March 21, 2018, 3:32am UTC](https://discuss.elastic.co/t/java-high-level-rest-client-information/124896/1 "2018-03-21T03:32:27Z")

</div>

Hello everyone,

I would like to work on the Java high-level REST client. I was gonna start with implementing the delete by query api into the client. I am however confused as to what the query means. I am unsure if it is searching for an entire index and deleting that or searching for a specific set of shards and deleting those or just deleting all things that are returned by a search  
Please help me understand what exactly should I implement.

Thank you,  
Aviral

---

<div class="post-metadata">

### Author: ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)
#### Post date: [March 21, 2018, 8:04am UTC](https://discuss.elastic.co/t/java-high-level-rest-client-information/124896/2 "2018-03-21T08:04:16Z")

</div>

Have you read the [relevant documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html)?

Generally you'd use it against a specific index like `POST twitter/_delete_by_query { ... }`, but you can also use it against multiple indices `POST twitter,blog/_docs,post/_delete_by_query { ... }` or limit it to specific shards (based on a routing key) `POST twitter/_delete_by_query?routing=1 { ... }`. If I'm not mistaken the delete by query operation even supports aliases and filtered aliases.

So looking at all of this I'm not sure it's the best API to get started with, since it's not the easiest one and you need to know a lot of Elasticsearch concepts. There are some more missing features marked as _easy_ in the meta-issue and I'd start with one of those: [https://github.com/elastic/elasticsearch/issues/27205](https://github.com/elastic/elasticsearch/issues/27205)

---

<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: [November 4, 2022, 5:17am UTC](https://discuss.elastic.co/t/java-high-level-rest-client-information/124896/3 "2022-11-04T05:17:48Z")

</div>


