# Check for data type query

**URL:** <https://discuss.elastic.co/t/check-for-data-type-query/117863>\
**Category:** Elasticsearch\
**Created:** [January 31, 2018, 5:30pm UTC](https://discuss.elastic.co/t/check-for-data-type-query/117863 "2018-01-31T17:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhinav1](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Abhinav1](https://discuss.elastic.co/u/Abhinav1)\
**Post date:** [January 31, 2018, 5:30pm UTC](https://discuss.elastic.co/t/check-for-data-type-query/117863/1 "2018-01-31T17:30:53Z")

</div>

Can we update the response in curl (GET) query that, if the field datatype is string or date or integer and we get the value as null or other then change it to 'Some other text'.  
For example  
if i have a string field in ES and the value is '123' can we parse it to integer using curl query?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 2, 2018, 1:11am UTC](https://discuss.elastic.co/t/check-for-data-type-query/117863/2 "2018-02-02T01:11:14Z")

</div>

That is not possible with Elasticsearch.

---

<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:** [March 2, 2018, 1:11am UTC](https://discuss.elastic.co/t/check-for-data-type-query/117863/3 "2018-03-02T01:11:16Z")

</div>

Closed on March 2, 2018, 1:11am UTC

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