But when I try to do a top on "long", the following message is thrown:
{
error: ReduceSearchPhaseException[Failed to execute phase [fetch],
[reduce] ]; nested:
ClassCastException[org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms$Bucket
cannot be cast to
org.elasticsearch.search.aggregations.bucket.terms.LongTerms$Bucket];
I have tried to reproduce your issue on both the master branch and on
version 1.1.1 but both seem to work as expected. The commands I ran are in
the following gist: https://gist.github.com/colings86/d67e00c378ee28c4485a
Could you have a look at let me know if I misunderstood something about
your problem?
Colin
On Friday, 8 August 2014 10:14:37 UTC+1, Octavian wrote:
Hy,
I have a problem with fields having the same name as known types. For
example, I have the following mapping:
But when I try to do a top on "long", the following message is thrown:
{
error: ReduceSearchPhaseException[Failed to execute phase [fetch],
[reduce] ]; nested:
ClassCastException[org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms$Bucket
cannot be cast to
org.elasticsearch.search.aggregations.bucket.terms.LongTerms$Bucket];
Yes, that are the commands that should reproduce this.
If on your version works ok, that my question is why on my setup doing a
top on long field returns the error (
error: ReduceSearchPhaseException[Failed to execute phase [fetch],
[reduce] ]; nested:
ClassCastException[org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms$Bucket
cannot be cast to
org.elasticsearch.search.aggregations.bucket.terms.LongTerms$Bucket];
)
Basically, ES tries to convert the fields from double to long. Why is doing
this?
On Friday, August 8, 2014 2:47:32 PM UTC+3, Colin Goodheart-Smithe wrote:
Hi,
I have tried to reproduce your issue on both the master branch and on
version 1.1.1 but both seem to work as expected. The commands I ran are in
the following gist: https://gist.github.com/colings86/d67e00c378ee28c4485a
Could you have a look at let me know if I misunderstood something about
your problem?
Colin
On Friday, 8 August 2014 10:14:37 UTC+1, Octavian wrote:
Hy,
I have a problem with fields having the same name as known types. For
example, I have the following mapping:
But when I try to do a top on "long", the following message is thrown:
{
error: ReduceSearchPhaseException[Failed to execute phase [fetch],
[reduce] ]; nested:
ClassCastException[org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms$Bucket
cannot be cast to
org.elasticsearch.search.aggregations.bucket.terms.LongTerms$Bucket];
I am not sure why your setup is producing this issue. To help to diagnose
the cause could you please post the mappings for the index (see [1] for how
to do this) and the complete cURL command for your search request?
On Monday, 11 August 2014 10:12:05 UTC+1, Octavian wrote:
Yes, that are the commands that should reproduce this.
If on your version works ok, that my question is why on my setup doing a
top on long field returns the error (
error: ReduceSearchPhaseException[Failed to execute phase [fetch],
[reduce] ]; nested:
ClassCastException[org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms$Bucket
cannot be cast to
org.elasticsearch.search.aggregations.bucket.terms.LongTerms$Bucket];
)
Basically, ES tries to convert the fields from double to long. Why is
doing this?
On Friday, August 8, 2014 2:47:32 PM UTC+3, Colin Goodheart-Smithe wrote:
Hi,
I have tried to reproduce your issue on both the master branch and on
version 1.1.1 but both seem to work as expected. The commands I ran are in
the following gist: https://gist.github.com/colings86/d67e00c378ee28c4485a
Could you have a look at let me know if I misunderstood something about
your problem?
Colin
On Friday, 8 August 2014 10:14:37 UTC+1, Octavian wrote:
Hy,
I have a problem with fields having the same name as known types. For
example, I have the following mapping:
But when I try to do a top on "long", the following message is thrown:
{
error: ReduceSearchPhaseException[Failed to execute phase [fetch],
[reduce] ]; nested:
ClassCastException[org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms$Bucket
cannot be cast to
org.elasticsearch.search.aggregations.bucket.terms.LongTerms$Bucket];
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.