On 20/07/2010, at 10:21 AM, Berkay Mollamustafaoglu wrote:
I have couple of questions:
- Is there an API call that outputs the mappings of an existing index? I see how to get shard/replica info but could not find the call to print out the mappings of each of the fields.
I don't know that it's the way, but off the top of my head, I hit http://localhost:9200/_cluster/state which returns among other things the mappings on the nodes.
- Is there a way to assign defaults (not analyzed etc) to fields that will be dynamically added later on?
I'm not sure of exactly what you need to put in here, but it looks like this is what you're looking for: http://www.elasticsearch.com/docs/elasticsearch/index_modules/mapper/#Dynamic_Mappings
Please consider the environment before printing this email
This email transmission is confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient, you must not copy, distribute or disseminate the information, or take any action in relation to it and please delete this e-mail. Any views expressed in this message are those of the individual sender, except where the send specifically states them to be the views of any organisation or employer. If you have received this message in error, do not open any attachment but please notify the sender (above). This message has been checked for all known viruses powered by McAfee.
For further information visit http://www.mcafee.com/us/threat_center/default.asp
Please rely on your own virus check as no responsibility is taken by the sender for any damage rising out of any virus infection this communication may contain.
This message has been scanned for malware by Websense. www.websense.com