Update any field


(ajasuja18) #1

Hello Everyone,

While updating any field in elasticsearch, we can using script to do the
same.
I know that they have to reindex the whole data of that particular id.

Will elasticsearch be able to do the update a particular field in case
I made *{_source: {enabled:false}} *or it is necessary to store the source
of the document with the index.

Thanks in advance..!!!


(Benjamin Devèze) #2

Hello

as of today you have to enable source to use the update API

On Mon, Jul 30, 2012 at 11:36 PM, ajasuja jasuja.ankit@gmail.com wrote:

Hello Everyone,

While updating any field in elasticsearch, we can using script to do the
same.
I know that they have to reindex the whole data of that particular id.

Will elasticsearch be able to do the update a particular field in case
I made *{_source: {enabled:false}} *or it is necessary to store the
source of the document with the index.

Thanks in advance..!!!

--
Benjamin DEVEZE


(Benjamin Devèze) #3

Hello!

For the moment you have to enable _source to use the update API

On Monday, July 30, 2012 11:36:17 PM UTC+2, ajasuja wrote:

Hello Everyone,

While updating any field in elasticsearch, we can using script to do the
same.
I know that they have to reindex the whole data of that particular id.

Will elasticsearch be able to do the update a particular field in case
I made *{_source: {enabled:false}} *or it is necessary to store the
source of the document with the index.

Thanks in advance..!!!


(ajasuja18) #4

Hi Benjamin,

Thanks for confirming me..!!!

On Monday, July 30, 2012 2:50:15 PM UTC-7, Benjamin Devèze wrote:

Hello!

For the moment you have to enable _source to use the update API

On Monday, July 30, 2012 11:36:17 PM UTC+2, ajasuja wrote:

Hello Everyone,

While updating any field in elasticsearch, we can using script to do the
same.
I know that they have to reindex the whole data of that particular id.

Will elasticsearch be able to do the update a particular field in case
I made *{_source: {enabled:false}} *or it is necessary to store the
source of the document with the index.

Thanks in advance..!!!

On Monday, July 30, 2012 2:50:15 PM UTC-7, Benjamin Devèze wrote:

Hello!

For the moment you have to enable _source to use the update API

On Monday, July 30, 2012 11:36:17 PM UTC+2, ajasuja wrote:

Hello Everyone,

While updating any field in elasticsearch, we can using script to do the
same.
I know that they have to reindex the whole data of that particular id.

Will elasticsearch be able to do the update a particular field in case
I made *{_source: {enabled:false}} *or it is necessary to store the
source of the document with the index.

Thanks in advance..!!!


(system) #5