: We encountered an issue when using the refine parameter when subfaceting in : a range facet. : When enabling the refine option, the counts of the response are the double : of the counts of the response without refine option. : We are running Solr 6.6.1 in a cloud setup. ... : If I execute the same query WITHOUT refine: true in the subfacet, I get the : following response: ... : There is a factor 2 difference for each count in each bucket. : : If I perform the same queries with a larger range gap, e.g. : \"start\":0.0, : \"end\":55000.0, : \"gap\":5000.0, : there is no difference between the response with and without refine: true.
FWIW: Based on the info you provided it's impossible for us to tell which of those 2 responses is "correct" ... ie: you know the source data, and have access to the index, and can do a test query where you filter (fq) on those ranges + field values to confirm what the "correct" numFound is -- we can't. So we can't be certain if you're getting the "correct" counts with or with out the refine param -- which is kind of important to help troubleshoot. That said... : Is this a known issue, or is there something we are overlooking? : And is there information on whether or not this behavior will be the same : in Solr 7? ...off the top of my head, I don't know of any specific bugs in 6.x with type:range facet counts being doubled/halfed when a refined/non-refined subfacet is used -- but it's certainly possible that one existed and was explicitly/invidently fixed. I can tell you that very recently I worked on 2 jiras involving type:range faceting -- one of which was a bug that caused incorrect results when "mincount" was used in cloud mode -- and as a result added some more robust testing (to master and branch_7x) of type:range facets as both parent facets and sub-facets of type:term facets -- and i did not encounter any sort of missmatches like the one you are describing... https://issues.apache.org/jira/browse/SOLR-11824 https://issues.apache.org/jira/browse/SOLR-3218 ...if you can reproduce this with branch_7x (7.3) then please file a jira with some sample data/config/queries that can be used to reproduce. -Hoss http://www.lucidworks.com/