# Format Output of ElasticSearch

**URL:** <https://discuss.elastic.co/t/format-output-of-elasticsearch/78650>\
**Category:** Elasticsearch\
**Created:** [March 15, 2017, 7:03am UTC](https://discuss.elastic.co/t/format-output-of-elasticsearch/78650 "2017-03-15T07:03:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam99](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sam99](https://discuss.elastic.co/u/sam99)\
**Post date:** [March 15, 2017, 7:03am UTC](https://discuss.elastic.co/t/format-output-of-elasticsearch/78650/1 "2017-03-15T07:03:01Z")

</div>

How can I tell ElasticSearch (ES) to return specific items in results? Consider the example below. I need only the fields object (in second part) and do not want to see all others (in first part)

```
_"total" : 2,_
"max_score" : 1.0,
"hits" : [ {
  "_index" : "index name",
  "_type" : "typer",
  "_id" : "uuid",
  "_score" : 1.0,_

```

\*\* "fields" : {  
Field 1: Value 1  
Field 2: Value 2  
Field 3: Value 3  
}\*\*

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 16, 2017, 7:55am UTC](https://discuss.elastic.co/t/format-output-of-elasticsearch/78650/2 "2017-03-16T07:55:32Z")

</div>

You cannot exclude those "meta" fields.

---

<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:** [April 13, 2017, 7:55am UTC](https://discuss.elastic.co/t/format-output-of-elasticsearch/78650/3 "2017-04-13T07:55:40Z")

</div>

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