Elasticsearch Mapping using java api

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.

The doc says that: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html#java-admin-indices-put-mapping

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