No search type for [scroll]

Scroll search doesn't seem to work on our cluster?

I'm using this request:

GET /my_index/_search?search_type=scroll&size=100
{
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "program_id": "276"
          }
        },
        {
          "term": {
            "status": {
              "value": "active"
            }
          }
        }
      ]
    }
  }
}

And I'm getting this error:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "No search type for [scroll]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "No search type for [scroll]"
  },
  "status": 400
}

In addition to that, the code on this page doesn't work either, I'm getting the same error

What is your cluster version ?

Read that ? https://www.elastic.co/guide/en/elasticsearch/reference/5.1/breaking_50_search_changes.html#_literal_search_type_scan_literal_removed

Well, why is that still in the documentation for the PHP API 5.0 if it is removed.

Also, deprecated functionality should be mentioned in the documentation.

Our cluster version is 5.1.1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.