0

Good day:

I have this structure Facility->Reviews. Reviews is a list of nested objects on the Facility parent object. I need a way...possibly with scripting to say insert new review into list of Reviews OR update review inside the review list only if review.id == param.review.id are equal. I'm trying to get this to work as a partial update or upsert with NEST. Kindly let me know if this is possible with NEST.

Thanks.

2
  • The only way to do this is with a script update. Technically, the entire document is fetched modified and reindexed on the server, and you can control update conflicts with optimistic concurrency control Commented Jul 4, 2018 at 22:36
  • 1
    A sample script can be found here: stackoverflow.com/questions/36589963/… Commented Jul 5, 2018 at 3:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.