# UpdatebyQuery

**URL:** https://discuss.elastic.co/t/updatebyquery/175623
**Category:** Elasticsearch
**Created:** [April 5, 2019, 3:22pm UTC](https://discuss.elastic.co/t/updatebyquery/175623 "2019-04-05T15:22:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vmormino](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@vmormino](https://discuss.elastic.co/u/vmormino)
#### Post date: [April 5, 2019, 3:22pm UTC](https://discuss.elastic.co/t/updatebyquery/175623/1 "2019-04-05T15:22:04Z")

</div>

Hy i do a massive update of field in my document

i use this istruction, but i recive the error:  
Unexpected character encountered while parsing value: \<. Path '', line 0, position 0."

How can i do , please help me thankyou

TimeSpan tempo = new TimeSpan(4,0,0);

var settings = new ConnectionSettings(node);

```
        settings.RequestTimeout(tempo);
        settings.DisableDirectStreaming();
        settings.DefaultIndex("catalogo_prodotti");

        var client = new ElasticClient(settings);

        var responeu = client.UpdateByQuery<mSearchOfferteEsercente>(u => u
              .Query(q => q.Term(f => f.Prodotto_online, true)
              )
              .Script("ctx._source.prodotto_online = 'false'")
              .Conflicts(Conflicts.Proceed)
              .Refresh(true)

        );
```

---

<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: [May 3, 2019, 3:22pm UTC](https://discuss.elastic.co/t/updatebyquery/175623/2 "2019-05-03T15:22:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
