How to get structure of mapping in JSON through Java

Hello,
Is it possible in Elasticsearch to retrieve index mapping into a whole
JSON format in Java ??
Curl -XGET 'http://localhost:9200/indexname/_mapping' will give the
whole structure of Index in JSON format. I wabt the same structure in
Java. Is it possible ? Any Java Api is available ??
Any help will be highy appreciated
Thanks

--

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:43, SearchTech sreejithpillai27.in@gmail.com a écrit :

Hello,
Is it possible in Elasticsearch to retrieve index mapping into a whole
JSON format in Java ??
Curl -XGET 'http://localhost:9200/indexname/_mapping' will give the
whole structure of Index in JSON format. I wabt the same structure in
Java. Is it possible ? Any Java Api is available ??
Any help will be highy appreciated
Thanks

--

--