Ok so based on a previous suggestion I'm creating a JSON document using
grails JSON converter and initially creating a index before indexing
I see that the JSON is formed as I expected and the create request appears
to go fine, I'm not sure exactly how to query the metadata but this would be
good for validation.
The possible problem I'm seeing now is this.
After the creation I send an index request with some data. I see in the logs
a lot of the following messages.
[20:16:27,787][DEBUG][cluster.metadata ] [Blizzard] Index
[inventory]: Update mapping [sale] (dynamic) with source ...
There is a spew of mapping data following this so why is the mapping being
updated? Is it because I'm not including all the default values and or
fields in my initial create?