Whenever I utilize the ElasticsearchService from @nestjs/elasticsearch, the response does not align with the type SearchResponse from @types/elasticsearch. The issue is that SearchResponse is supposed to be an object, but I actually receive an array containing both the SearchResponse object and an HTTP Status Code. Does anyone know how to disable this feature?
For instance:
[
{
...,
"aggregations": {
"backendVersions": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "1.0.0",
"doc_count": 1
}
]
}
}
},
200
]