# Byte fields being represented in quotation marks

**URL:** https://discuss.elastic.co/t/byte-fields-being-represented-in-quotation-marks/132783
**Category:** Elasticsearch
**Created:** [May 22, 2018, 10:38am UTC](https://discuss.elastic.co/t/byte-fields-being-represented-in-quotation-marks/132783 "2018-05-22T10:38:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![siddharth\_jain](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@siddharth\_jain](https://discuss.elastic.co/u/siddharth_jain)
#### Post date: [May 22, 2018, 10:38am UTC](https://discuss.elastic.co/t/byte-fields-being-represented-in-quotation-marks/132783/1 "2018-05-22T10:38:51Z")

</div>

I am using a mapping on my index where some of the fields are "byte".

> "m\_Ad\_Impression\_Preroll": {  
> "type": "byte"  
> },

When I'm using the Search API to get documents, I am obtaining the value of the filed in quotation marks.

> "m\_Videogram\_Play": "1",

This is happening only with some of the fields which are "byte".

The m\_ec\_unique\_count field is giving expected results.

> "m\_ec\_unique\_count": {  
> "type": "byte"  
> },

> "m\_ec\_unique\_count": 1,

Why is this happening?

P.S. I can only show snippets of the code.

---

<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: [June 19, 2018, 10:39am UTC](https://discuss.elastic.co/t/byte-fields-being-represented-in-quotation-marks/132783/2 "2018-06-19T10:39:13Z")

</div>

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