# Return numerical values without quotes

**URL:** https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687
**Category:** Elasticsearch
**Created:** [November 10, 2016, 3:07pm UTC](https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687 "2016-11-10T15:07:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![blekfet](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@blekfet](https://discuss.elastic.co/u/blekfet)
#### Post date: [November 10, 2016, 3:07pm UTC](https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687/1 "2016-11-10T15:07:33Z")

</div>

Hi!

I have an elasticsearch installation with numerical mappings. The problem is that i can't control what is inserted. And the insertions are putting the numbers within quotes.

When I query the index these values are also returned with quotes. Is it possible to change a setting or mapping to return the numerical value without the quotes?

Some client application are requiering that the data is formated as numerical JSON.

Thanks,  
/blekfet

---

<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: [November 14, 2016, 12:58am UTC](https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687/2 "2016-11-14T00:58:49Z")

</div>

> [@blekfet](#):
>
> And the insertions are putting the numbers within quotes.

They're being converted to strings?

---

<div class="post-metadata">

### Author: ![blekfet](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@blekfet](https://discuss.elastic.co/u/blekfet)
#### Post date: [November 14, 2016, 7:55am UTC](https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687/3 "2016-11-14T07:55:46Z")

</div>

An insertion of "4.0" would give back "4.0".  
An insertion of 4.0 would give back 4.

The mapping for the field is a float. Can this be sovled easily?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 14, 2016, 8:11am UTC](https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687/4 "2016-11-14T08:11:43Z")

</div>

Elasticsearch does not modify the document source, so I believe the fact that you get back what you inserted in expected. You should really address this before you index the documents.

---

<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: [December 12, 2016, 8:12am UTC](https://discuss.elastic.co/t/return-numerical-values-without-quotes/65687/5 "2016-12-12T08:12:04Z")

</div>

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