How can I mapping index with nested fields by Java API Client?

I'm trying to index simple "forumlike" document: question with list of answers, but in kibana i see that client ignore field of my class with List. I can't find any information about it so can you please give me link to some example of using new API Client with nested fields. Thank you.