Quantcast

ClassCastException[null] when grouping on a particular field

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ClassCastException[null] when grouping on a particular field

ankur6971
This post has NOT been accepted by the mailing list yet.
I am trying to group the results on a particular field by using the following query:

{
  "from": 0,
  "size": 0,
  "fields": [
    "exitPage.categoryId"
  ],
  "aggs": {
    "check": {
      "terms": {
        "field": "exitPage.categoryId"
      }
    }
  }
}


Elasticsearch server throws this exception:

{
  "error": "ClassCastException[null]",
  "status": 500
}


and that too, on an intermittent basis - sometimes it returns results while sometimes it does not. There is no more descriptive information available in the server log.

Does anyone have a clue to this problem?
Loading...