# Example script for "scripted upsert"

**URL:** https://discuss.elastic.co/t/example-script-for-scripted-upsert/60418
**Category:** Elasticsearch
**Created:** [September 13, 2016, 6:32pm UTC](https://discuss.elastic.co/t/example-script-for-scripted-upsert/60418 "2016-09-13T18:32:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kaung](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaung/32/11165_2.png) [@kaung](https://discuss.elastic.co/u/kaung)
#### Post date: [September 13, 2016, 6:32pm UTC](https://discuss.elastic.co/t/example-script-for-scripted-upsert/60418/1 "2016-09-13T18:32:39Z")

</div>

The example for "scripted upsert" only mentions a script ID "my\_web\_session\_summariser". Does anyone have the content of that script?  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html#\_literal\_scripted\_upsert\_literal](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html#_literal_scripted_upsert_literal)

---

<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:20pm UTC](https://discuss.elastic.co/t/example-script-for-scripted-upsert/60418/2 "2017-07-05T22:20:31Z")

</div>


