Returning values from an update script

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 elasticsearch+unsubscribe@googlegroups.com.
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.

Hey,

you can return fields from the update response (even the whole source), see
the end of

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 <
daniel.winterstein@gmail.com> 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 elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
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.

Thanks Alexander.
fields might be exactly what I need.
Do you know what happens if there is a race / conflict-and-retry situation?

Will the field values returned for a request always be the ones set by that
request?
Or can you do an update, but get a returned value which comes from a
different but concurrent update?

Thank you for your time & help,

  • Daniel

On 27 January 2014 10:17, Alexander Reelsen alr@spinscale.de wrote:

Hey,

you can return fields from the update response (even the whole source),
see the end of
Elasticsearch Platform — Find real-time answers at scale | Elastic
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 <
daniel.winterstein@gmail.com> 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 elasticsearch+unsubscribe@googlegroups.com.

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 a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/JeOQUtO1G1E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
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.

--
Dr Daniel Winterstein
Director

A: TechCube, Edinburgh, EH9 1PL
M: +44 (0)772 5172 612
http://winterwell.com http://sodash.com

--
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/CAEmLSt%3DJq%3D0vFhrKoR8b1qnVx2eaiXhqMAdy3s29dD65W%3D94Mg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.