Hey guys! I'm a newcomer and have been diving deep into ElasticSearch for
the last week.
Today, I've been trying to debug a maddening issue: I have a "long" field
that contains decimals between 0 and 1, and sorting on it is not working.
The records that are exactly 0 or exactly 1 show up in the right place, but
any values in between are treated as if they were 0 for the purpose of
sorting. I found the fielddata_fields setting, and it turns out my hunch
was right: a given value would show up as 0.155676 in _source, but
wrongfully show as 0 in the "fields" hash that I get from fielddata_fields.
I can't figure out why, and google comes up with nothing. Help would be
appreciated!
Hey guys! I'm a newcomer and have been diving deep into Elasticsearch for the last week.
Today, I've been trying to debug a maddening issue: I have a "long" field that contains decimals between 0 and 1, and sorting on it is not working. The records that are exactly 0 or exactly 1 show up in the right place, but any values in between are treated as if they were 0 for the purpose of sorting. I found the fielddata_fields setting, and it turns out my hunch was right: a given value would show up as 0.155676 in _source, but wrongfully show as 0 in the "fields" hash that I get from fielddata_fields.
I can't figure out why, and google comes up with nothing. Help would be appreciated!
Le 18 janv. 2015 à 10:25, Sergey Tsalkov <stsa...@gmail.com <javascript:>>
a écrit :
Hey guys! I'm a newcomer and have been diving deep into Elasticsearch for
the last week.
Today, I've been trying to debug a maddening issue: I have a "long" field
that contains decimals between 0 and 1, and sorting on it is not working.
The records that are exactly 0 or exactly 1 show up in the right place, but
any values in between are treated as if they were 0 for the purpose of
sorting. I found the fielddata_fields setting, and it turns out my hunch
was right: a given value would show up as 0.155676 in _source, but
wrongfully show as 0 in the "fields" hash that I get from fielddata_fields.
I can't figure out why, and google comes up with nothing. Help would be
appreciated!
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.