You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/11/10 05:03:58 UTC
[jira] [Commented] (SOLR-9738) Stats node not null if empty results
[ https://issues.apache.org/jira/browse/SOLR-9738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15653051#comment-15653051 ]
David Smiley commented on SOLR-9738:
------------------------------------
If this is true, then looks like a bug to me, albeit a minor one.
> Stats node not null if empty results
> ------------------------------------
>
> Key: SOLR-9738
> URL: https://issues.apache.org/jira/browse/SOLR-9738
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 5.5.3
> Reporter: Andrea Lovato
> Priority: Minor
> Labels: beginner, empty, stats, test
>
> Hi all,
> first of all, you're doing a great job with solr, it's amazing :)
> actually i'm workin' on updating solr to v4.6.1 to v5.5.3 on our production env and i notice that on v5.5.3 the stats node is not null if solr returns 0 results.
> For example: request: <queryForEmptyRequest>&stats=true&stats.field=fa_p1
> v5.5.3
> "response":{"numFound":0,"start":0,"docs":[]},
> "stats":{
> "stats_fields":{
> "fa_p1":{
> "min":null,
> "max":null,
> "count":0,
> "missing":0,
> "sum":0.0,
> "sumOfSquares":0.0,
> "mean":"NaN",
> "stddev":0.0}}}
> v4.6.1
> "response": {"numFound": 0,"start": 0,"docs": [ ]},
> "stats": {
> "stats_fields": {
> "fa_p1": null
> }
> }
> but i've also noticed that if i disable the mean field on v5.5.3, the stats node for the field fa_p1 is empty
> request: <queryForEmptyRequest>&stats=true&stats.field={!mean=false}fa_p1
> "response":{"numFound":0,"start":0,"docs":[]},
> "stats":{
> "stats_fields":{
> "fa_p1":{}}}
> Is this the correct behaviour? Or am i missing something?
> thanks
--
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