# Getting only selected Fields in the query results

**URL:** <https://discuss.elastic.co/t/getting-only-selected-fields-in-the-query-results/6308>\
**Category:** Elasticsearch\
**Created:** [January 7, 2012, 6:40am UTC](https://discuss.elastic.co/t/getting-only-selected-fields-in-the-query-results/6308 "2012-01-07T06:40:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)\
**Post date:** [January 7, 2012, 6:40am UTC](https://discuss.elastic.co/t/getting-only-selected-fields-in-the-query-results/6308/1 "2012-01-07T06:40:17Z")

</div>

Hi,  
As referred in  
[http://www.elasticsearch.org/guide/reference/api/search/fields.html](http://www.elasticsearch.org/guide/reference/api/search/fields.html), We can  
get the fields we require, but is there any possiblity, to skip few fields  
rather than selecting a large number of fields, because each document has  
different fields, so its very difficult for me to have a list of all those  
fields.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 7, 2012, 7:35pm UTC](https://discuss.elastic.co/t/getting-only-selected-fields-in-the-query-results/6308/2 "2012-01-07T19:35:55Z")

</div>

Three is a new feature in master (upcoming 0.19) that allows to include /  
exclude parts of \_source:  
[Search: Support partial fields that can returns partial view of the \_source · Issue #1570 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1570).

On Sat, Jan 7, 2012 at 8:40 AM, Narinder Kaur [narinder.kaur@izap.in](mailto:narinder.kaur@izap.in) wrote:

> Hi,  
> As referred in  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/fields.html), We  
> can get the fields we require, but is there any possiblity, to skip few  
> fields rather than selecting a large number of fields, because each  
> document has different fields, so its very difficult for me to have a list  
> of all those 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:** [July 6, 2017, 3:43am UTC](https://discuss.elastic.co/t/getting-only-selected-fields-in-the-query-results/6308/3 "2017-07-06T03:43:33Z")

</div>


