# Best way for add comma separated field value in Elasticsearch index

**URL:** <https://discuss.elastic.co/t/best-way-for-add-comma-separated-field-value-in-elasticsearch-index/183332>\
**Category:** Elasticsearch\
**Created:** [May 29, 2019, 12:35pm UTC](https://discuss.elastic.co/t/best-way-for-add-comma-separated-field-value-in-elasticsearch-index/183332 "2019-05-29T12:35:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jignesh.panchal](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jignesh.panchal](https://discuss.elastic.co/u/jignesh.panchal)\
**Post date:** [May 29, 2019, 12:35pm UTC](https://discuss.elastic.co/t/best-way-for-add-comma-separated-field-value-in-elasticsearch-index/183332/1 "2019-05-29T12:35:27Z")

</div>

In our mysql data we have one column with comma separated integer value. and I am using this value in where condition also using find\_in\_set for get specific result. I need option like this in Elasticsearch also.

Currently i prepare index with nested datatype like below:  
"doctype": {  
"type": "nested",  
"properties": {  
"d": {  
"type": "short"  
}  
}  
},

But when i check this value in Kibana, It gives worning like : Object in Array is not well supported.

I want to know Is there any better way to store this type of data? Is these type of value can affect on 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:** [June 26, 2019, 12:35pm UTC](https://discuss.elastic.co/t/best-way-for-add-comma-separated-field-value-in-elasticsearch-index/183332/2 "2019-06-26T12:35:28Z")

</div>

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