I am running a simple query in a non-distributed search using grouping. I am
getting incorrect facet field counts and I cannot figure out why.

Here is the query you will notice that the facet field and facet query
counts are not the same. The facet query counts are correct. Any help is
appreciated.

This XML file does not appear to have any style information associated with
it. The document tree is shown below.
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">18</int>
</lst>
<lst name="grouped">
<lst name="groupid">
<int name="matches">89</int>
<int name="ngroups">74</int>
<arr name="groups">
<lst>
<str name="groupValue">uc101cadet</str>
<result name="doclist" numFound="2" start="0">
<doc>
<str name="productid">uc101</str>
<arr name="finish">
<str>White</str>
<str>Black</str>
</arr>
<str name="uniqueFinish">Black</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">736388</int>
<int name="uniqueid">1545116</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">rm162cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">rm162</str>
<arr name="finish">
<str>N/A</str>
</arr>
<str name="uniqueFinish">N/A</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">667690</int>
<int name="uniqueid">1545089</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">cs202cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">cs202</str>
<arr name="finish">
<str>N/A</str>
</arr>
<str name="uniqueFinish">N/A</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">460865</int>
<int name="uniqueid">1545142</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">cs152cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">cs152</str>
<arr name="finish">
<str>N/A</str>
</arr>
<str name="uniqueFinish">N/A</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">458740</int>
<int name="uniqueid">1545141</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">65201cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">65201</str>
<arr name="finish">
<str>White</str>
</arr>
<str name="uniqueFinish">White</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">773769</int>
<int name="uniqueid">1999873</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">rmc202cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">rmc202</str>
<arr name="finish">
<str>White</str>
</arr>
<str name="uniqueFinish">White</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">667929</int>
<int name="uniqueid">1545122</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">rbf101cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">rbf101</str>
<arr name="finish">
<str>Chrome</str>
</arr>
<str name="uniqueFinish">Chrome</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">663553</int>
<int name="uniqueid">1820328</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">rm202cadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">rm202</str>
<arr name="finish">
<str>N/A</str>
</arr>
<str name="uniqueFinish">N/A</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">667551</int>
<int name="uniqueid">1545088</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">sl151tcadet</str>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="productid">sl151t</str>
<arr name="finish">
<str>White</str>
</arr>
<str name="uniqueFinish">White</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">710375</int>
<int name="uniqueid">1545153</int>
</doc>
</result>
</lst>
<lst>
<str name="groupValue">uc102cadet</str>
<result name="doclist" numFound="2" start="0">
<doc>
<str name="productid">uc102</str>
<arr name="finish">
<str>White</str>
<str>Black</str>
</arr>
<str name="uniqueFinish">White</str>
<str name="manufacturer">cadet</str>
<int name="productCompositeid">736389</int>
<int name="uniqueid">1820349</int>
</doc>
</result>
</lst>
</arr>
</lst>
</lst>
<lst name="facet_counts">
<lst name="facet_queries">
<int name="HeatingArea_numeric:[0 TO *]">23</int>
</lst>
<lst name="facet_fields">
<lst name="HeatingArea_numeric">
<int name="128.0">20</int>
<int name="250.0">6</int>
<int name="500.0">6</int>
<int name="250.0">6</int>
<int name="500.0">6</int>
<int name="250.0">6</int>
<int name="500.0">6</int>
<int name="375.0">3</int>
<int name="375.0">3</int>
<int name="374.0">3</int>
<int name="125.0">2</int>
<int name="200.0">2</int>
<int name="125.0">2</int>
<int name="200.0">2</int>
<int name="125.0">2</int>
<int name="200.0">2</int>
<int name="32.0">2</int>
<int name="175.0">1</int>
<int name="300.0">1</int>
<int name="400.0">1</int>
<int name="550.0">1</int>
<int name="175.0">1</int>
<int name="300.0">1</int>
<int name="400.0">1</int>
<int name="550.0">1</int>
<int name="175.0">1</int>
<int name="300.0">1</int>
<int name="400.0">1</int>
<int name="548.0">1</int>
<int name="512.0">1</int>
<int name="100.0">0</int>
<int name="220.0">0</int>
<int name="420.0">0</int>
<int name="610.0">0</int>
<int name="640.0">0</int>
<int name="710.0">0</int>
<int name="720.0">0</int>
<int name="750.0">0</int>
<int name="770.0">0</int>
<int name="835.0">0</int>
<int name="850.0">0</int>
<int name="860.0">0</int>
<int name="870.0">0</int>
<int name="900.0">0</int>
<int name="910.0">0</int>
<int name="920.0">0</int>
<int name="930.0">0</int>
<int name="940.0">0</int>
<int name="950.0">0</int>
<int name="1000.0">0</int>
<int name="1010.0">0</int>
<int name="1015.0">0</int>
<int name="1020.0">0</int>
<int name="1040.0">0</int>
<int name="1050.0">0</int>
<int name="1070.0">0</int>
<int name="1090.0">0</int>
<int name="1100.0">0</int>
<int name="1150.0">0</int>
<int name="1175.0">0</int>
<int name="1200.0">0</int>
<int name="1250.0">0</int>
<int name="1300.0">0</int>
<int name="1330.0">0</int>
<int name="1360.0">0</int>
<int name="1400.0">0</int>
<int name="1430.0">0</int>
<int name="1450.0">0</int>
<int name="1500.0">0</int>
<int name="1520.0">0</int>
<int name="1550.0">0</int>
<int name="1600.0">0</int>
<int name="1630.0">0</int>
<int name="1650.0">0</int>
<int name="1660.0">0</int>
<int name="1700.0">0</int>
<int name="1750.0">0</int>
<int name="1770.0">0</int>
<int name="1800.0">0</int>
<int name="1850.0">0</int>
<int name="1900.0">0</int>
<int name="1950.0">0</int>
<int name="2000.0">0</int>
<int name="2050.0">0</int>
<int name="2100.0">0</int>
<int name="2200.0">0</int>
<int name="2240.0">0</int>
<int name="2300.0">0</int>
<int name="2400.0">0</int>
<int name="2500.0">0</int>
<int name="2700.0">0</int>
<int name="2780.0">0</int>
<int name="2900.0">0</int>
<int name="3000.0">0</int>
<int name="3100.0">0</int>
<int name="3500.0">0</int>
<int name="3600.0">0</int>
<int name="3800.0">0</int>
<int name="4500.0">0</int>
<int name="5000.0">0</int>
</lst>
</lst>
<lst name="facet_dates"/>
<lst name="facet_ranges"/>
</lst>
<lst name="debug">
<str name="rawquerystring">categories_82_is:109124</str>
<str name="querystring">categories_82_is:109124</str>
<str name="parsedquery">
(+categories_82_is:109124 () () () ()
FunctionQuery((1.0*float(int(popularity_82_i))+2.0)^3.0))/no_coord
</str>
<str name="parsedquery_toString">
+categories_82_is:`#8;#0;#6;TD () () () ()
(1.0*float(int(popularity_82_i))+2.0)^3.0
</str>
<lst name="explain">
<str name="uc101cadet!1545116">
19320.156 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 64090) [DefaultSimilarity], result
of: 9.630448 = score(doc=64090,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 64090,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=64090) 19310.525 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
67513.0 = 1.0*float(int(popularity_82_i)=67511)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="rm162cadet!1545089">
10218.499 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462372) [DefaultSimilarity], result
of: 9.630448 = score(doc=462372,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462372,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462372) 10208.868 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
35692.0 = 1.0*float(int(popularity_82_i)=35690)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="cs202cadet!1545142">
10200.765 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462299) [DefaultSimilarity], result
of: 9.630448 = score(doc=462299,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462299,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462299) 10191.134 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
35630.0 = 1.0*float(int(popularity_82_i)=35628)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="cs152cadet!1545141">
10165.298 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462297) [DefaultSimilarity], result
of: 9.630448 = score(doc=462297,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462297,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462297) 10155.667 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
35506.0 = 1.0*float(int(popularity_82_i)=35504)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="65201cadet!1999873">
10129.83 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462244) [DefaultSimilarity], result
of: 9.630448 = score(doc=462244,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462244,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462244) 10120.199 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
35382.0 = 1.0*float(int(popularity_82_i)=35380)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="rmc202cadet!1545122">
10058.8955 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462378) [DefaultSimilarity], result
of: 9.630448 = score(doc=462378,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462378,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462378) 10049.265 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
35134.0 = 1.0*float(int(popularity_82_i)=35132)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="rbf101cadet!1820328">
10032.295 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462367) [DefaultSimilarity], result
of: 9.630448 = score(doc=462367,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462367,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462367) 10022.664 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
35041.0 = 1.0*float(int(popularity_82_i)=35039)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="rm202cadet!1545088">
9987.961 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462373) [DefaultSimilarity], result
of: 9.630448 = score(doc=462373,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462373,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462373) 9978.33 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
34886.0 = 1.0*float(int(popularity_82_i)=34884)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="sl151tcadet!1545153">
9943.627 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 462386) [DefaultSimilarity], result
of: 9.630448 = score(doc=462386,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 462386,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=462386) 9933.996 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
34731.0 = 1.0*float(int(popularity_82_i)=34729)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
<str name="uc102cadet!1820349">
9934.76 = (MATCH) sum of: 9.630448 = (MATCH)
weight(categories_82_is:`#8;#0;#6;TD in 64091) [DefaultSimilarity], result
of: 9.630448 = score(doc=64091,freq=1.0 = termFreq=1.0 ), product of:
0.9582216 = queryWeight, product of: 10.050335 = idf(docFreq=89,
maxDocs=766925) 0.095342256 = queryNorm 10.050335 = fieldWeight in 64091,
product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 10.050335 =
idf(docFreq=89, maxDocs=766925) 1.0 = fieldNorm(doc=64091) 9925.129 =
(MATCH) FunctionQuery(1.0*float(int(popularity_82_i))+2.0), product of:
34700.0 = 1.0*float(int(popularity_82_i)=34698)+2.0 3.0 = boost 0.095342256
= queryNorm
</str>
</lst>
<str name="QParser">ExtendedDismaxQParser</str>
<null name="altquerystring"/>
<null name="boost_queries"/>
<arr name="parsed_boost_queries"/>
<arr name="boostfuncs">
<str>linear(popularity_82_i,1,2)^3.0</str>
</arr>
<arr name="filter_queries">
<str>siteid:82</str>
</arr>
<arr name="parsed_filter_queries">
<str>siteid:82</str>
</arr>
<lst name="timing">
<double name="time">17.0</double>
<lst name="prepare">
<double name="time">5.0</double>
<lst name="query">
<double name="time">5.0</double>
</lst>
<lst name="facet">
<double name="time">0.0</double>
</lst>
<lst name="mlt">
<double name="time">0.0</double>
</lst>
<lst name="highlight">
<double name="time">0.0</double>
</lst>
<lst name="stats">
<double name="time">0.0</double>
</lst>
<lst name="spellcheck">
<double name="time">0.0</double>
</lst>
<lst name="debug">
<double name="time">0.0</double>
</lst>
</lst>
<lst name="process">
<double name="time">12.0</double>
<lst name="query">
<double name="time">2.0</double>
</lst>
<lst name="facet">
<double name="time">4.0</double>
</lst>
<lst name="mlt">
<double name="time">0.0</double>
</lst>
<lst name="highlight">
<double name="time">0.0</double>
</lst>
<lst name="stats">
<double name="time">1.0</double>
</lst>
<lst name="spellcheck">
<double name="time">0.0</double>
</lst>
<lst name="debug">
<double name="time">5.0</double>
</lst>
</lst>
</lst>
</lst>
</response>



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-facet-field-counts-not-correct-tp4097305.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to