Scripted partial delete

Hi

I want to delete just one element from a list
Is that possible inside a script?

From the docs it only appears possible to delete the document if it
contains an element.

The solution then I guess is to read the entire document. And delete in
memory the relevant piece.

Then write back the remainder?

But I was hoping for a "bulk" based approach

Thanks,

--
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/7f92b622-beef-416e-904b-3fbe53a99839%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello

can person confirm if script can delete an element of an array

I assume it's not possible

--
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/cd4fd4d5-98ea-4991-bb99-9c49038115ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Actually it is possible!
It's a mvel thing

In mvel it's possible to
_source.doc.list.remove (elem)

The options in elasticsearch documentation do not go very deep.

Maybe another discussion group for mvel scripting questions ?

--
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/5110d3c4-f5e4-40a5-9eda-b5235229b2b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.