You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2016/05/04 15:18:13 UTC
[jira] [Updated] (SOLR-9066) Make CountMetric return long instead
of double
[ https://issues.apache.org/jira/browse/SOLR-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Risden updated SOLR-9066:
-------------------------------
Attachment: SOLR-9066.patch
This cleans up a few other items related to Metrics as well.
* getValue returns Number instead of double
* Removes serializable.
* Removes unnecessary boxing
Tests pass locally for me for solr.client.solrj.io.*
> Make CountMetric return long instead of double
> ----------------------------------------------
>
> Key: SOLR-9066
> URL: https://issues.apache.org/jira/browse/SOLR-9066
> Project: Solr
> Issue Type: Bug
> Affects Versions: 6.0, master
> Reporter: Kevin Risden
> Attachments: SOLR-9066.patch
>
>
> CountMetric currently is forced to return a double when it should return a long. This causes issues with SQL integration. The Metric abstract class getValue() should be a Number and not a double. A few minor changes must be made to the other *Metric classes to support this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org