Return a single field


(Adam Estrada) #1

All,

I am getting the hang on elasticsearch but I am stuck at how to return
the results for a single field only. For example, the twitter river
returns all fields. I only want to see the text field. How do I limit
this in the response?

Adam


(Clinton Gormley) #2

On Thu, 2011-06-30 at 12:43 -0700, Adam Estrada wrote:

All,

I am getting the hang on elasticsearch but I am stuck at how to return
the results for a single field only. For example, the twitter river
returns all fields. I only want to see the text field. How do I limit
this in the response?

You'll never guess what the parameter is called :wink:

http://www.elasticsearch.org/guide/reference/api/search/fields.html

clint


(system) #3