Is it possible to disable certain inner_hit fields in the response from the Search API. We have many hits and it is taking up unnecessary memory.
e.g we would like to ES to remove the commented out fields from the response below:
{
"took": 82,
"timed_out": false,
"_shards": { "total": 10, "successful": 10, "skipped": 0, "failed": 0 },
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"inner_hits": {
"foo": {
"hits": {
"total": 252,
"max_score": null,
"hits": [
{
// "_index": "cactus",
// "_type": "_doc",
// "_id": "xxx",
"_nested": { "field": "measurement", "offset": 203 },
// "_score": null,
// "sort": [1565740800000, "1DAA3DB2-30B0-4A8C-90EC-DE0A3DAB9A53"],
"fields": {
"measurement.id": ["1DAA3DB2-30B0-4A8C-90EC-DE0A3DAB9A53"]
}
}
]
}
}
}
}
]
}
}