Sure thing here are the detail.

We have type with following mapping with "dynamic": "strict" so other 
datatype data can let go in. Note, it has a field "Id" with long datatype. 

When we try to get statistical facet on Id it gives error* 
PagedBytesIndexFieldData 
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData]*

And it happens randomly, once I wipe out index and create it again, it 
works for some time and then all of a sudden it start giving error.

{
    "portfoliosearch": {
"dynamic": "strict",
        "properties": {
"Id": {
                "type": "long",
                "index": "not_analyzed",
                "index_Name": "Id"
            }
            "Name": {
                "type": "string",
                "index": "not_analyzed",
                "index_Name": "Name"
            }
        },
"_routing": {
"required": true
},
        "_parent": {
            "type": "importsetsearch"
        }
    }
}


statistical query

{
  "query": {
    "match_all": {}
  },
  "facets": {
    "Id": {
      "statistical": {
        "field": "Id"
      }
    }
  }
}

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/fe471294-43c7-48b8-ab6a-0248f8c1d6a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to