Query DSL to retrieve from index specific fields like a Select in SQL

Hi guys,
I would to get from my index a specific fields like a simply select query in SQL with a DSL query...
Thank's in advance for the replies!

If you don't want to get back all the _source, you need to change the mapping and make the fields you want to retrieved as stored fields then use stored_fields in the query to access them.

See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-stored-fields.html

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