Java Client to insert index with mapping

Hi,
I'm new in elasticsearch, i need to insert index with mapping , i don't find a simple code to use
can help me with a simple code to mapping the index
Thank you

I believe this is the same question as you already posted there:

No need to post it multiple times. Thanks.