Format Output of ElasticSearch

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

You cannot exclude those "meta" fields.

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