# '\_source' field is not displayed in GET API request

**URL:** https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974
**Category:** Elasticsearch
**Created:** [December 16, 2019, 10:08am UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974 "2019-12-16T10:08:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)
#### Post date: [December 16, 2019, 10:08am UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974/1 "2019-12-16T10:08:06Z")

</div>

I collected data with Logstash.  
Index templates are not defined separately.

The '\_search API' request returns the \_source field.  
GET index/\_search

But 'GET' api requests do not return the \_source field.  
GET index/\_doc/\_id

I know If i don't set anything related to \_source, it will default to the resulting value.  
How can I get the value of \_source field in a 'GET API' request?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [December 16, 2019, 5:09pm UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974/2 "2019-12-16T17:09:18Z")

</div>

can you share a reproducible example? Just seeing the HTTP calls itself makes it super hard to do any further debugging. Thank you!

---

<div class="post-metadata">

### Author: ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)
#### Post date: [December 23, 2019, 2:13am UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974/3 "2019-12-23T02:13:55Z")

</div>

1. GET index\_name/\_settings  
I just add codec, number of shards  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/e/de5e08d44c580db9fb1708a25c3f0433284f9a3c.jpeg)

2. GET index\_name/\_doc/\_id  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/43c267e44d96565f25415b034165d33a4d935e3f.jpeg)

When i use '\_search API', '\_source' is well visible.  
Under what circumstances can this be?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 23, 2019, 3:04am UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974/4 "2019-12-23T03:04:53Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<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: [January 20, 2020, 3:04am UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974/5 "2020-01-20T03:04:55Z")

</div>

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