Add field to all documents of an index

Hi I need to add a new field (with a default) to all documents already
indexed.

I guess bulk update will do it?

--
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/3b0a5b54-a355-4ad7-86a7-286808d4de36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello John ,

Update by query plugin would be a good choice -

Just set a match_all query.

Bulk API with updates to all the documents should also work.

Thanks
Vineeth

On Tue, Sep 2, 2014 at 7:01 PM, John Smith java.dev.mtl@gmail.com wrote:

Hi I need to add a new field (with a default) to all documents already
indexed.

I guess bulk update will do it?

--
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/3b0a5b54-a355-4ad7-86a7-286808d4de36%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/3b0a5b54-a355-4ad7-86a7-286808d4de36%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DhWg1Jztx%3D6tKXDtzUBMKearj1uEnfvbd9M80VfhOFdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thanks! That's what I have been thinking! :slight_smile:

On 2 September 2014 13:15, vineeth mohan vm.vineethmohan@gmail.com wrote:

Hello John ,

Update by query plugin would be a good choice -
GitHub - yakaz/elasticsearch-action-updatebyquery: ElasticSearch Update By Query action plugin
Just set a match_all query.

Bulk API with updates to all the documents should also work.

Thanks
Vineeth

On Tue, Sep 2, 2014 at 7:01 PM, John Smith java.dev.mtl@gmail.com wrote:

Hi I need to add a new field (with a default) to all documents already
indexed.

I guess bulk update will do it?

--
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/3b0a5b54-a355-4ad7-86a7-286808d4de36%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/3b0a5b54-a355-4ad7-86a7-286808d4de36%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 a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/zOS6iUkZ3Eo/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/CAGdPd5%3DhWg1Jztx%3D6tKXDtzUBMKearj1uEnfvbd9M80VfhOFdw%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DhWg1Jztx%3D6tKXDtzUBMKearj1uEnfvbd9M80VfhOFdw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAMiEuFRRjhvpM%2BSOfzCx%2BfjgwFbv6nL_vTr39CQRkG3XRmH1QQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.