elasticsearch get all docs just one field code example
Example 1: elasticsearch query gettign fields
{
"_source": ["field_x", ..., "field_y"],
"query": {
...
}
}
Example 2: elasticsearch select fields
"_source": ["user", "message", ...],