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",
"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",
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/65ced417-b1e2-4227-bf25-38c7bc3adb89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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",
sortierung => "5"
}
}
);
On 8 December 2014 at 10:29, Jorge von Rudno <
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",
"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",
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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPt3XKR6UBgked6iRjw2tYfu%3DpwXsnnqWB0Hu9hGzQKMR0PYdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.