Description
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":
,
"stats":{
"stats_fields":{
"fa_p1":
}}
v4.6.1
"response":
,
"stats": {
"stats_fields":
}
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