Failed to decode scrollId


(raghu) #1

Hi All,

I have to retrieve all the id's using single query.

I am trying to use the scroll functionality it is giving me "Failed to decode Scroll Id".

Getting the scroll Id by using the below
GET gfrc_v0c_001/_search?scroll=2m&search_type=scan
{
"query": {
"match_all" : {
}
}
}

Passing the Scroll Id again by using below giving me exceptions.

GET gfrc_v0c_001/_search/scroll=2m
{
"scroll" : "2m",
"scroll_id" : "c2Nhbjs1OzMyNzQ6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc1OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MzI3NjpEZDVpbUdtZ1JDV0pyQ2Q1TXJxSkZnOzMyNzc6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc4OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MTt0b3RhbF9oaXRzOjIxMjA7"
}
{
"error": "InvalidTypeNameException[mapping type name [search] can't start with '']",
"status": 400
}

GET _search/scroll
{
"scroll" : "2m",
"scroll_id" : "c2Nhbjs1OzMyNzQ6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc1OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MzI3NjpEZDVpbUdtZ1JDV0pyQ2Q1TXJxSkZnOzMyNzc6RGQ1aW1HbWdSQ1dKckNkNU1ycUpGZzszMjc4OkRkNWltR21nUkNXSnJDZDVNcnFKRmc7MTt0b3RhbF9oaXRzOjIxMjA7"
}

{
"error": "ElasticsearchIllegalArgumentException[Failed to decode scrollId]; nested: IOException[Bad Base64 input character decimal 123 in array position 0]; ",
"status": 400
}

please help me.


(raghu) #2

This issue is coming in Elastic Search 1.7 and it is working fine in Elastic 2.0. in our DEV environment we have Elastic 1.7.

any alternatives to solve this issue.


(system) #3