Elasticsearch. Nested datatype return object instead array

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.