You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zheng Lin Edwin Yeo <ed...@gmail.com> on 2016/10/05 07:44:55 UTC
Facet Aggregate Functions precision
Hi,
Regarding the Solr JSON Facet Aggregate Functions, is it possible to round
off a value to a specific decimal place?
Currently, the values are like those below, which has more than 10 decimal
place.
"facets":{
"count":32,
"categories":{
"buckets":[
{
"val":"electronics",
"count":12,
"x":231.02666823069254,
"y":2772.3200187683105
},
{
"val":"memory",
"count":3,
"x":86.66333262125652,
"y":259.98999786376953
},
It will be good if we can only display them only in like 2 decimal place.
Regards,
Edwin