Simply specify the fields that you are interested in, in the query and you are 
good to go.

[1] 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html

On 12/2/14 12:52 PM, Elias Abou Haydar wrote:
I'm trying to write a mapreduce job where I can query elasticsearch so it can 
return to me specific fields. Is there any
way to do that?

My mapping contains about 30 fields and I will need just 4 of them 
("_id","title","description","category")

The way I was doing it is to process each answer to get those fields, but I'm 
looking for a cleaner way to do that.

Any help or suggestion is appreciated.

Thanks!

--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to
elasticsearch+unsubscr...@googlegroups.com 
<mailto:elasticsearch+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/ac512248-b3fe-4023-b28e-a4263ae720ec%40googlegroups.com
<https://groups.google.com/d/msgid/elasticsearch/ac512248-b3fe-4023-b28e-a4263ae720ec%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Costin

--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/547DA43B.4020305%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to