I have the following document structure:
//nested type
//nested type
...
...
...
But if in document I have only one instance of EgnaElement, search operation returns EgnaElement just as object but not array. Like this:
...
EgnaElement{
EgetElement[
...
]
}
...
May be Elasticsearch has some setting to prevent this unnecessary convertion