The field with nested type will be indexed be indexed as a separate document and creates a relationship with the parent document internally.
My question is that if the nested filed has a array of single object instead of multiple object how does es indexes this data? will this also be indexed as a separate document or will it be indexed as the inner object of the parent document.