# Partial update elaticsearch-perl

**URL:** <https://discuss.elastic.co/t/partial-update-elaticsearch-perl/21135>\
**Category:** Elasticsearch\
**Created:** [December 8, 2014, 9:29am UTC](https://discuss.elastic.co/t/partial-update-elaticsearch-perl/21135 "2014-12-08T09:29:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_von\_Rudno](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jorge\_von\_Rudno](https://discuss.elastic.co/u/Jorge_von_Rudno)\
**Post date:** [December 8, 2014, 9:29am UTC](https://discuss.elastic.co/t/partial-update-elaticsearch-perl/21135/1 "2014-12-08T09:29:46Z")

</div>

Dear Colleagues,

I have the following instructions that I running in "marvel/sense" with a  
right result:

POST /myindex/mytype/mykey/\_update  
{  
"doc" : {  
"link" : "[http://www.kicoso.com](http://www.kicoso.com)",  
"sortierung" : "4"  
}  
}

but when I try to run the same instruction in perl I get the following  
mistake:  
Could not execute update [Native Error: ERROR: [Param] \*\* Unknown param  
(doc) in (update) request.

the instruction in perl are:

$e-\>update(  
index =\> 'myindex',  
type =\> 'mytype',  
id =\> "mykey",  
doc =\> {  
link =\> "[http://www.nw-kicoso.com](http://www.nw-kicoso.com)",  
sortierung =\> "5"  
}  
);

What I am doing wrong?

In advance thousand thanks for your help.

Kind regards

Jorge von Rudno

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [January 29, 2015, 8:02pm UTC](https://discuss.elastic.co/t/partial-update-elaticsearch-perl/21135/2 "2015-01-29T20:02:59Z")

</div>

Hi Jorge

The `doc` should be passed in the `body` parameter:

$e-\>update(  
index =\> 'myindex',  
type =\> 'mytype',  
id =\> "mykey",  
body =\> {  
doc =\> {  
link =\> "[http://www.nw-kicoso.com](http://www.nw-kicoso.com)",  
sortierung =\> "5"  
}  
}  
);

On 8 December 2014 at 10:29, Jorge von Rudno \<  
[jorge.vonrudno.gp@googlemail.com](mailto:jorge.vonrudno.gp@googlemail.com)\> wrote:

> Dear Colleagues,
> 
> I have the following instructions that I running in "marvel/sense" with a  
> right result:
> 
> POST /myindex/mytype/mykey/\_update  
> {  
> "doc" : {  
> "link" : "[http://www.kicoso.com](http://www.kicoso.com)",  
> "sortierung" : "4"  
> }  
> }
> 
> but when I try to run the same instruction in perl I get the following  
> mistake:  
> Could not execute update [Native Error: ERROR: [Param] \*\* Unknown param  
> (doc) in (update) request.
> 
> the instruction in perl are:
> 
> $e-\>update(  
> index =\> 'myindex',  
> type =\> 'mytype',  
> id =\> "mykey",  
> doc =\> {  
> link =\> "[http://www.nw-kicoso.com](http://www.nw-kicoso.com)",  
> sortierung =\> "5"  
> }  
> );
> 
> What I am doing wrong?
> 
> In advance thousand thanks for your help.
> 
> Kind regards
> 
> Jorge von Rudno
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPt3XKR6UBgked6iRjw2tYfu%3DpwXsnnqWB0Hu9hGzQKMR0PYdw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKR6UBgked6iRjw2tYfu%3DpwXsnnqWB0Hu9hGzQKMR0PYdw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:35am UTC](https://discuss.elastic.co/t/partial-update-elaticsearch-perl/21135/3 "2017-07-06T00:35:50Z")

</div>

Closed on July 6, 2017, 12:35am UTC


