# How to Search Freeze Index using Java High Level REST Client

**URL:** <https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275>\
**Category:** Elasticsearch\
**Created:** [July 8, 2019, 2:21am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275 "2019-07-08T02:21:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![taku333](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taku333/32/40375_2.png) [@taku333](https://discuss.elastic.co/u/taku333)\
**Post date:** [July 8, 2019, 2:21am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/1 "2019-07-08T02:21:21Z")

</div>

Hi Everyone,

Currently, I am creating an application that acquires data from Elasticsearch using Java High Level REST Client.

So I want to implement a search for the Freeze Index, but can't find something in the documentation, is there any way to do it?(Search API using)

---

<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:** [July 8, 2019, 6:08am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/2 "2019-07-08T06:08:11Z")

</div>

This? [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.2/java-rest-high-freeze-index.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.2/java-rest-high-freeze-index.html)

I meant that a standard search should work then, no?

---

<div class="post-metadata">

**Author:** ![taku333](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taku333/32/40375_2.png) [@taku333](https://discuss.elastic.co/u/taku333)\
**Post date:** [July 8, 2019, 6:51am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/3 "2019-07-08T06:51:42Z")

</div>

@dadoonet  
Excuse me, I was missing words.

> I meant that a standard search should work then, no?

→In Freeze Index API, I could read that I could freeze the index but not search.

I know that you can get a frozen index by granting 「ignore\_throttled=false 」by Search API .

When I checked the following, it was described that there was a bug and it was reflected from 7.1 OR 6.8.

If you are using 6.7.1, is it the only way to upgrade?

> <https://github.com/elastic/elasticsearch/issues/42358>
>
> SearchRequest don't include ignore\_throttled=false in the request.
> 
> \` SearchRe…quest searchRequest = new SearchRequest();
> searchRequest.indicesOptions(IndicesOptions.fromOptions(true, true,
> true, false, searchRequest.indicesOptions().allowAliasesToMultipleIndices(),
> searchRequest.indicesOptions().forbidClosedIndices(), searchRequest.indicesOptions().ignoreAliases(), false));
> SearchResponse response = client.search(searchRequest, RequestOptions.DEFAULT);
> \`

> <https://github.com/elastic/elasticsearch/pull/42393>
>
> closes #42358

---

<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:** [July 8, 2019, 7:09am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/4 "2019-07-08T07:09:30Z")

</div>

> [@taku333](#):
>
> If you are using 6.7.1, is it the only way to upgrade?

I'd upgrade indeed to the latest 6.x available.

---

<div class="post-metadata">

**Author:** ![taku333](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taku333/32/40375_2.png) [@taku333](https://discuss.elastic.co/u/taku333)\
**Post date:** [July 8, 2019, 7:12am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/5 "2019-07-08T07:12:09Z")

</div>

@dadoonet  
Thanks for answer!

---

<div class="post-metadata">

**Author:** ![taku333](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taku333/32/40375_2.png) [@taku333](https://discuss.elastic.co/u/taku333)\
**Post date:** [July 9, 2019, 1:47am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/6 "2019-07-09T01:47:01Z")

</div>

It turned out that it is supported from 6.8.1.

[https://www.elastic.co/guide/en/elasticsearch/reference/6.8/release-notes-6.8.1.html#bug-6.8.1](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/release-notes-6.8.1.html#bug-6.8.1)

---

<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:** [August 6, 2019, 1:47am UTC](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275/7 "2019-08-06T01:47:15Z")

</div>

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