Hi Brian, Could you please share your java code? Did you update the entire document or just one field? Our requirement is update specific fields as well so just wondering how setSource would work there?
Regards, Preeti On Wednesday, April 9, 2014 3:43:00 AM UTC+5:30, InquiringMind wrote: > > Preeti, > > I just updated my Java update command to allow the source JSON to be > specified (it typically created the source from one or more name=value > pairs). It reads the JSON from a file so that there is no Bash nor non-ES > Java interpretation of the \unnnn sequences. > > I updated the same record several times in a row without any failures or > exceptions of any kind. Queries always return the most recently updated > version of the document and the responses reflect all changes that were > made as well as the expected version number. > > So, I am sure that using the *setScript* method is incorrect, and you > should be using the *setSource* method for your use case. > > Regards, > Brian > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/93e2f65e-84c9-490c-b7c9-cfa356d81b98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
