'_source' field is not displayed in GET API request

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?

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

  1. GET index_name/_settings
    I just add codec, number of shards

  2. GET index_name/_doc/_id

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

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.

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