Scroll by indices mask fails

I've posted this here https://github.com/elastic/elasticsearch/issues/33225 already, but with no luck..

I'm using this scroll API query to search multiple indices:

-XPOST activity_stats*/type1,type2,type3/_search?scroll=1h -d '--some query data--'

it gives me required amount of records, but following request

_search/scroll?scroll=1h&scroll_id=$scrollId

returns 404 error:
array(6) {
["type"]=>
string(25) "index_not_found_exception"
["reason"]=>
string(13) "no such index"
["resource.type"]=>
string(14) "index_or_alias"
["resource.id"]=>
string(11) "bad-request"
["index_uuid"]=>
string(4) " na "
["index"]=>
string(11) "bad-request"
}

Elasticsearch version 5.1.2

Some notices:

  1. Curl syntax is used for clarity, actually it's php script
  2. $scrollId is valid
  3. I have indices named like activity_stats_week_1, activity_stats_week_2 etc

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