lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <edwinye...@gmail.com>
Subject Facet Aggregate Functions precision
Date Wed, 05 Oct 2016 07:44:55 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message