# 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:** 1\
**Showing post:** 3

<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

---

_[View the full topic](https://discuss.elastic.co/t/how-to-search-freeze-index-using-java-high-level-rest-client/189275)._
