sirensolutions / siren-join

[This is the old, single node version for Elasticsearch 2.x, see the latest "Siren Federate" plugin for distributed Elasticsearch 5.x and 6.x capabilities]
http://siren.io
GNU Affero General Public License v3.0
183 stars 60 forks source link

does not support scroll API #95

Closed scampi closed 8 years ago

scampi commented 8 years ago

It seems that the scroll API is not supported by the _coordinate_action.

Running the following query does return a scroll ID in the response:

$ curl 'localhost:9200/product/Product/_coordinate_search?scroll=1m' -d '
{
   "query": {
      "bool": {
         "filter": {
            "filterjoin": {
               "productId": {
                  "indices": [
                     "offer"
                  ],
                  "types": [
                     "Offer"
                  ],
                  "path": "productId",
                  "query": {
                     "term": {
                        "offerStatus": "pending"
                     }
                  }
               }
            }
         }
      }
   }
}
'

But when the ID is used, an error is thrown:

$ curl -XGET 'localhost:9200/_coordinate_search/scroll' -d '
{
   "scroll": "1m",
   "scroll_id": "cXVlcnlUaGVuRmV0Y2g7NTszNjoyNWJzd0p5a1JMaXFoam1rN0F1c1RBOzM3OjI1YnN3SnlrUkxpcWhqbWs3QXVzVEE7Mzg6MjVic3dKeWtSTGlxaGptazdBdXNUQTszOToyNWJzd0p5a1JMaXFoam1rN0F1c1RBOzQwOjI1YnN3SnlrUkxpcWhqbWs3QXVzVEE7MDs="
}
'
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "No feature for name [scroll]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "No feature for name [scroll]"
  },
  "status": 400
}
scampi commented 8 years ago

This is not supported. Please mail info@siren.solutions if this a blocking issue for you for possible solutions.