# Java-rest-high-search-template typed\_keys field

**URL:** <https://discuss.elastic.co/t/java-rest-high-search-template-typed-keys-field/205461>\
**Category:** Elasticsearch\
**Created:** [October 28, 2019, 12:39pm UTC](https://discuss.elastic.co/t/java-rest-high-search-template-typed-keys-field/205461 "2019-10-28T12:39:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wojciechss](https://avatars.discourse-cdn.com/v4/letter/w/a4c791/32.png) [@wojciechss](https://discuss.elastic.co/u/wojciechss)\
**Post date:** [October 28, 2019, 12:39pm UTC](https://discuss.elastic.co/t/java-rest-high-search-template-typed-keys-field/205461/1 "2019-10-28T12:39:19Z")

</div>

Hi,

is there any possibility to set `typed_keys` param in SearchTemplateRequest class?  
In api specification:  
[https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html#search-template-api-query-params](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html#search-template-api-query-params)  
`typed_keys` is set by default to false, but in [Java High Level REST Client] seems to be overridden by true value:

> <https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java>

params.putParam(RestSearchAction.TYPED\_KEYS\_PARAM, "true");

---

<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 25, 2019, 12:39pm UTC](https://discuss.elastic.co/t/java-rest-high-search-template-typed-keys-field/205461/2 "2019-11-25T12:39:36Z")

</div>

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