Retrieve mapping of Index in JSON format through Java API

Hello,
Is it possible to retrieve ElasticSearch index mapping into a whole JSON format in JAVA

curl -XGET 'http://localhost:9200/index/_mapping' will give the whole structure of index in JSON. I want the same structure in JAVA.. Is it possible in Java ?

Any help will be highly appreciated
Thanks,

I think I already answered to this question this morning:

Hey,

Look here:https://github.com/elasticsearchfr/elasticsearch-java-tests/blob/master/src/test/java/org/elasticsearchfr/tests/ES002GetMappingTest.java

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 déc. 2012 à 06:16, Sreejith Pillai sreejithpillai27.in@gmail.com a écrit :

Hello,
Is it possible to retrieve Elasticsearch index mapping into a whole JSON
format in JAVA

curl -XGET 'http://localhost:9200/index/_mapping' will give the whole
structure of index in JSON. I want the same structure in JAVA.. Is it
possible in Java ?

Any help will be highly appreciated
Thanks,

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Retrieve-mapping-of-Index-in-JSON-format-through-Java-API-tp4027232.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--

--