I have just installed elasticsearch 5.0.0. Now I want to add some data to it using java api. But before that I want to set mapping for string type to "not analysed" Can anyone help me how to add mapping using java api.
I want all Strings as not analysed.