# Fields out of \_source

**URL:** <https://discuss.elastic.co/t/fields-out-of-source/202598>\
**Category:** Elasticsearch\
**Created:** [October 7, 2019, 10:05pm UTC](https://discuss.elastic.co/t/fields-out-of-source/202598 "2019-10-07T22:05:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maicoldv159](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@maicoldv159](https://discuss.elastic.co/u/maicoldv159)\
**Post date:** [October 7, 2019, 10:05pm UTC](https://discuss.elastic.co/t/fields-out-of-source/202598/1 "2019-10-07T22:05:52Z")

</div>

I have a customer that want to create an index with stored fields out of the \_source, in the same place than "\_index", "\_type", "\_score", "\_id". It should be something like  
{  
"\_index" : "MyIndex",  
"\_type" : "doc",  
"\_id" : "1",  
"\_score" : 1.0  
"CustomField" : "TestData",  
"CustomField2" : "TestData",  
}

We need to create that type of index from API calls, we can't do anything manual in the process.  
Is it possible? I have been searching for a while, but I don't found useful information.

---

<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:** [October 8, 2019, 4:38am UTC](https://discuss.elastic.co/t/fields-out-of-source/202598/2 "2019-10-08T04:38:18Z")

</div>

As far as I know that is not possible.

---

<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:** [November 5, 2019, 4:38am UTC](https://discuss.elastic.co/t/fields-out-of-source/202598/3 "2019-11-05T04:38:30Z")

</div>

Closed on November 5, 2019, 4:38am UTC

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