# Problem with \_update\_by\_query

**URL:** https://discuss.elastic.co/t/problem-with--update-by-query/56116
**Category:** Elasticsearch
**Created:** [July 21, 2016, 3:53pm UTC](https://discuss.elastic.co/t/problem-with--update-by-query/56116 "2016-07-21T15:53:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)
#### Post date: [July 21, 2016, 3:53pm UTC](https://discuss.elastic.co/t/problem-with--update-by-query/56116/1 "2016-07-21T15:53:24Z")

</div>

Hi all, i'm using ES v 2.3 and i have a problem with the usage of \_update\_by\_query.  
I have some question:  
1 - It's a plugin?  
2 - I nedd to install it?  
3 - I try this POST /test/test/\_update\_by\_query?conflicts=proceed but i have an error:  
{  
"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "failed to parse, document is empty"  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "failed to parse, document is empty"  
},  
"status": 400  
}  
i see the log...and ES try to create a new document:  
[rest.suppressed] /test/test/\_update\_by\_query Params: {conflicts=proceed, index=test, id=\_update\_by\_query, type=test}  
....It's a bug? or i wrong something?

Someone can help me????

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [July 21, 2016, 4:11pm UTC](https://discuss.elastic.co/t/problem-with--update-by-query/56116/2 "2016-07-21T16:11:16Z")

</div>

> [@cirot87](#):
>
> 1 - It's a plugin?

It is a module. Modules are plugins that come pre-bundled. It makes my life easier to develop it this way but it has caused some trouble folks using the transport client, trouble we're trying to fix in 5.0.

> [@cirot87](#):
>
> 2 - I nedd to install it?

No, it comes pre-installed.

> [@cirot87](#):
>
> 3 - I try this POST /test/test/\_update\_by\_query?conflicts=proceed but i have an error:

It looks like it isn't installed. Weird.

> [@cirot87](#):
>
> Someone can help me????

When you started Elasticsearch you should have a log line that looks like

```auto
[2016-07-21 12:06:22,221][INFO][plugins] [Gauntlet] modules [reindex, lang-expression, lang-groovy], plugins [], sites []

```

That is what I get from a fresh download of 2.3.3 I had laying around on my laptop. Is reindex in the list?

Can you post the output of `find modules` run from the root of you Elasticsearch install? That should include something that looks like:

```auto
modules/reindex
modules/reindex/plugin-descriptor.properties
modules/reindex/reindex-2.3.3.jar

```

You also might want to check `curl localhost:9200/_nodes/_all/plugins?pretty`. That should list the plugins the same as that logger line on startup.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:33pm UTC](https://discuss.elastic.co/t/problem-with--update-by-query/56116/3 "2017-07-05T22:33:37Z")

</div>


