# How to get query result without doc field(\_index, \_id...)

**URL:** <https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245>\
**Category:** Elasticsearch\
**Created:** [July 8, 2020, 1:41am UTC](https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245 "2020-07-08T01:41:54Z")\
**Posts on this page:** 3\
**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:** [July 8, 2020, 1:41am UTC](https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245/1 "2020-07-08T01:41:55Z")

</div>

how to get query result without doc field?

doc field: \_index, \_type, \_id, \_score...

---

<div class="post-metadata">

**Author:** ![psramkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/psramkumar/32/31393_2.png) [@psramkumar](https://discuss.elastic.co/u/psramkumar)\
**Post date:** [July 8, 2020, 6:03am UTC](https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245/2 "2020-07-08T06:03:05Z")

</div>

There is no option available out of box. You always get the metadata

[have a look at this Issue 2149](https://github.com/elastic/elasticsearch/issues/2149)

---

<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:** [August 5, 2020, 6:03am UTC](https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245/3 "2020-08-05T06:03:11Z")

</div>

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