Hey, you can return fields from the update response (even the whole source), see the end of http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html You could then compare on the application side, if something had changed. Does that help?
--Alex On Fri, Jan 24, 2014 at 1:40 AM, Daniel Winterstein < [email protected]> wrote: > Hello, > > I'm running an update request using a script. How can I return values from > that? > > Specifically, I want to return true/false based on what update the script > has done. > > Thank you & > Best regards, > - Daniel > > -- > 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/cffb6275-cb99-444a-acbf-50e8ed724990%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/CAGCwEM_xJCWFwA25cs8ktforfMDh9khx22mNArPFr6xxJ4fs0w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
