Hello Zaid ,

It seems so.
But then you can anytime take the document , make the changes and index it
back to the same docID.
That does not need any scripting capability.

Thanks
           Vineeth Mohan,
           Elasticsearch consultant,
           qbox.io ( Elasticsearch service provider <http://qbox.io/>)

On Wed, Apr 15, 2015 at 3:19 PM, Zaid Amir <redserpe...@gmail.com> wrote:

> So what you're saying is, there is no way to do this without a script or
> plugin. Is that right?
>
> On Wednesday, April 15, 2015 at 12:38:37 PM UTC+3, vineeth mohan wrote:
>>
>> Hi ,
>>
>> You can place your script under script directory
>> <http://www.elastic.co/guide/en/elasticsearch/reference/1.x/modules-scripting.html>
>> and use this script without enabling scripting.
>> You can find more information on this here
>> <http://www.elastic.co/guide/en/elasticsearch/reference/1.x/modules-scripting.html>
>> .
>> Or you can write a java code which does this and package it as a plugin.
>> You can find some examples here
>> <https://github.com/imotov/elasticsearch-native-script-example>.
>>
>> In both these case , you need to make sure this code/plugin is pushed to
>> all the nodes.
>>
>> Thanks
>>            Vineeth Mohan,
>>            Elasticsearch consultant,
>>            qbox.io ( Elasticsearch service provider <http://qbox.io/>)
>>
>>
>>
>>
>> On Wed, Apr 15, 2015 at 3:02 PM, Zaid Amir <redse...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I would like to know if there is a way to add or remove from an array
>>> field without using a script? All the examples I came across use scripts to
>>> do this, yet I do not want to enable scripts on my cluster (dynamic or
>>> indexed).
>>>
>>> How can I achieve this?
>>>
>>> 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 elasticsearc...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/elasticsearch/0afcb38c-43c2-44b3-a967-e4a233a3f65e%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/elasticsearch/0afcb38c-43c2-44b3-a967-e4a233a3f65e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/7ff9786e-c5cf-4ac1-b093-47b3e1c76dc1%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/7ff9786e-c5cf-4ac1-b093-47b3e1c76dc1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DNiP%3Dc2pbavkp7sQbdsAt7V7_GS%3DbsREcF5%3D%3D9EJowKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to