I need to retrieve the field mappings for a type under elasticsearch 0.90.9.
ES is running as an embedded local node, and here is how I connect to it
and retrieve mappings (the result contains an empty map):
..
//creates index and mappings
...
Client client =
NodeBuilder.nodeBuilder().clusterName(CLUSTER_NAME).local(true).client(true).node().client();
GetFieldMappingsRequest getMappingsRequest =
new
GetFieldMappingsRequest().indices(INDEX_NAME).types(TYPE_NAME).local(true).includeDefaults(true);
GetFieldMappingsResponse response =
client.admin().indices().getFieldMappings(getMappingsRequest).actionGet();
The problem is that the mappings returned are empty.
Any suggestions appreciated. Thanks!
Andra
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ed5e9d03-b1e0-4e06-8d4a-e185d06ed771%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.