Hi, forgive me that I'm new to elasticsearch
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
Hi, forgive me that I'm new to elasticsearch
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
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
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.