Get specific flieds

I need to get specific fields rather than getting all the values in hits.

Use _source query parameter to specify which fields should be returned:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html

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