I'm using the elasticsearch javascript library and am struggling to figure out how to just return whats inside of the _source
object...I pull that data like this:
client.search({
index: 'kafkajmx2',
body: {
"_source": "*",
"size": 10000,
"query": {
"bool": {
"must": [
{ "match": { "metric_name": "IsrExpandsPerSec.Count" }}
],
"filter": [
{
"range": {
"@timestamp": {
"gte": "now-60m"
}
}
}
]
}
}
}
})
but I don't get just the source back...if I change "_source": "*"
to "_source": true
, I still get the same results back...