Get Fields from index

Hi, forgive me that I'm new to elasticsearch :slight_smile:
I just try to throw in different docs and want to know what fields
have been created in the index. Is there a way to ask the index which
fields it has? (I'm using the java api)

Thx Thomas

Easiest way would be to get the mapping:
http://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping.html

If you allow dynamic mappings (the default), the mapping will be
updated as you add documents to the index. For the Java API, the
relevant methods are in the ClusterState classes.

--
Ivan

On Sun, Jul 29, 2012 at 2:12 AM, Thomas Kratz eiswind@gmail.com wrote:

Hi, forgive me that I'm new to elasticsearch :slight_smile:
I just try to throw in different docs and want to know what fields
have been created in the index. Is there a way to ask the index which
fields it has? (I'm using the java api)

Thx Thomas