What you're describing is the upsert functionality in the mvel scripting.
The upsert will create and populate when the key doesn't exist. And the update api will add to the document if it does already exist. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9ccaa381-2c3d-440e-9366-28645b22710e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.