lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy2 <wendy....@rcsb.org>
Subject Why did Solr stats min/max values were returned as float number for field of type="pint"?
Date Fri, 03 May 2019 00:46:50 GMT
Hi Solr users,

I have a pint field: 
<field name="rcsb_entry_info.disulfide_bond_count" type="pint"
indexed="true" stored="true"/>

But Solr stats min/max values were returned as float numbers ( "min":0.0, 
"max":1356.0) . I thought "pint" type fields should return min/max as int.
Is there something that user can do to make sure it returns as int type
(which matches the field definition)?   Thanks!


{
  "responseHeader":{
    "status":0,
    "QTime":17,
    "params":{
      "q":"*:*",
      "stats":"true",
      "fl":"",
      "rows":"0",
      "stats.field":"rcsb_entry_info.disulfide_bond_count"}},
  "response":{"numFound":151364,"start":0,"docs":[]
  },
  "stats":{
    "stats_fields":{
      "rcsb_entry_info.disulfide_bond_count":{
        "min":0.0,
        "max":1356.0,
        "count":151363,
        "missing":1,
        "sum":208560.0,
        "sumOfSquares":5660388.0,
        "mean":1.3778796667613618,
        "stddev":5.958002695748158}}}}



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Mime
View raw message