# How to store data in elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-store-data-in-elasticsearch/16840>\
**Category:** Elasticsearch\
**Created:** [April 7, 2014, 11:44am UTC](https://discuss.elastic.co/t/how-to-store-data-in-elasticsearch/16840 "2014-04-07T11:44:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shayhz](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@shayhz](https://discuss.elastic.co/u/shayhz)\
**Post date:** [April 7, 2014, 11:44am UTC](https://discuss.elastic.co/t/how-to-store-data-in-elasticsearch/16840/1 "2014-04-07T11:44:05Z")

</div>

Hi,  
I want to use elasticsearch on my backend and I have few questions:

1. My DB contains semi-structured data of products, i.e. each product may have different attributes inside it.  
I want to be able to search a text on most of the fields and also search a text on one specific field.  
What is the recommended way to store the document in ES ? to store all text in on field (maybe using \_all feature) or leave it in different fields.  
My concern of different fields is that I might have a lot of indexes (because I have many different product attributes)

2. I'm using couchbase as my main DB.  
What is the recommended way to move the documents from it to ES, assuming I need to make some modifications on the document ?  
To update the index from my code explicitly or use external tool ?

10x,

---

<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:** [July 6, 2017, 1:37am UTC](https://discuss.elastic.co/t/how-to-store-data-in-elasticsearch/16840/2 "2017-07-06T01:37:51Z")

</div>


