# Same query convert string to int gives different result for nested fields

**URL:** <https://discuss.elastic.co/t/same-query-convert-string-to-int-gives-different-result-for-nested-fields/322598>\
**Category:** Elasticsearch\
**Created:** [January 6, 2023, 7:13am UTC](https://discuss.elastic.co/t/same-query-convert-string-to-int-gives-different-result-for-nested-fields/322598 "2023-01-06T07:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanwardeep\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kanwardeep_singh/32/115629_2.png) [@Kanwardeep\_Singh](https://discuss.elastic.co/u/Kanwardeep_Singh)\
**Post date:** [January 6, 2023, 7:13am UTC](https://discuss.elastic.co/t/same-query-convert-string-to-int-gives-different-result-for-nested-fields/322598/1 "2023-01-06T07:13:54Z")

</div>

> **[Screenshot](https://prnt.sc/1tq_aqVr9NUi)**
>
> Captured with Lightshot

I created new index and copy mapping from old index but After elasticdump running same query convert string to int gives different result for nested fields.

> **[Screenshot](https://prnt.sc/mnxha0KG395Z)**
>
> Captured with Lightshot

> **[Screenshot](https://prnt.sc/kd3eE0X6-eQx)**
>
> Captured with Lightshot

---

<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:** [February 3, 2023, 7:14am UTC](https://discuss.elastic.co/t/same-query-convert-string-to-int-gives-different-result-for-nested-fields/322598/2 "2023-02-03T07:14:12Z")

</div>

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