Getting only selected Fields in the query results


(narinder.izap) #1

Hi,
As referred in
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.


(Shay Banon) #2

Three is a new feature in master (upcoming 0.19) that allows to include /
exclude parts of _source:
https://github.com/elasticsearch/elasticsearch/issues/1570.

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

Hi,
As referred in
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.


(system) #3