elasticsearch display only a few fields code example
Example 1: elastic get data from specific fields
{
"_source": ["user", "message", ...],
"query": ...,
"size": ...
}
Example 2: elasticsearch select fields
"_source": ["user", "message", ...],