Bulk update api support? 0.90.7


(이지홍) #1

i want bulk update by below query

{
"update":{
"_id":"1392879915322246000",
"_index":"test3_398462",
"_type":"2014-02"
}
}
{

"script" : "ctx._source.playTime += playTime",

"params" : {
    
    "playTime" : 100

}

}

but, error found.
{
"error":"Unexpected end-of-input: expected close marker for OBJECT (from [
Source: [
B@7390f98a; line: 1,
column: 83
])\n at [
Source: [
B@7390f98a; line: 1,
column: 169
]"
}

how can i use bulk update with script?

my jest client code is..
e.g) Update build = new Update.Builder(query)
.index(labc)
.type(bbc)
.id(123).build();
plz help me


(system) #2