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 <[email protected]> wrote:

> 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 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
> [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.
>



-- 
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 [email protected].
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.

Reply via email to