Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
6.0
-
None
-
None
Description
I notice that using facet.mincount in SolrCloud mode with distrib=true fails to filter the facets based on the count. However, the same query with distrib=false works as expected.
- Indexed some data as provided by the upstream test.
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/test/org/apache/solr/request/SimpleFacetsTest.java#L633
- Test being run:
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/test/org/apache/solr/request/SimpleFacetsTest.java#L657
- Running in SolrCloud mode with distrib=false (facet.mincount works as expected)
$ curl "http://search-testing-c5-3.ent.cloudera.com:8983/solr/simple_faceting_coll/select?facet.date.start=1976-07-01T00%3A00%3A00.000Z&facet=true&facet.mincount=1&q=*%3A*&facet.date=bday&facet.date.other=all&facet.date.gap=%2B1DAY&facet.date.end=1976-07-01T00%3A00%3A00.000Z%2B1MONTH&rows=0&indent=true&wt=xml&distrib=false" <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">3</int> <lst name="params"> <str name="facet.date.start">1976-07-01T00:00:00.000Z</str> <str name="facet">true</str> <str name="indent">true</str> <str name="facet.mincount">1</str> <str name="q">*:*</str> <str name="facet.date">bday</str> <str name="distrib">false</str> <str name="facet.date.gap">+1DAY</str> <str name="facet.date.other">all</str> <str name="wt">xml</str> <str name="facet.date.end">1976-07-01T00:00:00.000Z+1MONTH</str> <str name="rows">0</str> </lst> </lst> <result name="response" numFound="33" start="0"> </result> <lst name="facet_counts"> <lst name="facet_queries"/> <lst name="facet_fields"/> <lst name="facet_dates"> <lst name="bday"> <int name="1976-07-03T00:00:00Z">1</int> <int name="1976-07-04T00:00:00Z">1</int> <int name="1976-07-05T00:00:00Z">1</int> <int name="1976-07-13T00:00:00Z">1</int> <int name="1976-07-15T00:00:00Z">1</int> <int name="1976-07-21T00:00:00Z">1</int> <int name="1976-07-30T00:00:00Z">1</int> <str name="gap">+1DAY</str> <date name="start">1976-07-01T00:00:00Z</date> <date name="end">1976-08-01T00:00:00Z</date> <int name="before">2</int> <int name="after">0</int> <int name="between">6</int> </lst> </lst> <lst name="facet_ranges"/> </lst> </response>
- SolrCloud mode with distrib=true (facet.mincount fails to show effect)
$ curl "http://search-testing-c5-3.ent.cloudera.com:8983/solr/simple_faceting_coll/select?facet.date.start=1976-07-01T00%3A00%3A00.000Z&facet=true&facet.mincount=1&q=*%3A*&facet.date=bday&facet.date.other=all&facet.date.gap=%2B1DAY&facet.date.end=1976-07-01T00%3A00%3A00.000Z%2B1MONTH&rows=0&indent=true&wt=xml&distrib=true" <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">12</int> <lst name="params"> <str name="facet.date.start">1976-07-01T00:00:00.000Z</str> <str name="facet">true</str> <str name="indent">true</str> <str name="facet.mincount">1</str> <str name="q">*:*</str> <str name="facet.date">bday</str> <str name="distrib">true</str> <str name="facet.date.gap">+1DAY</str> <str name="facet.date.other">all</str> <str name="wt">xml</str> <str name="facet.date.end">1976-07-01T00:00:00.000Z+1MONTH</str> <str name="rows">0</str> </lst> </lst> <result name="response" numFound="63" start="0" maxScore="1.0"> </result> <lst name="facet_counts"> <lst name="facet_queries"/> <lst name="facet_fields"/> <lst name="facet_dates"> <lst name="bday"> <int name="1976-07-01T00:00:00Z">0</int> <int name="1976-07-02T00:00:00Z">0</int> <int name="1976-07-03T00:00:00Z">2</int> <int name="1976-07-04T00:00:00Z">2</int> <int name="1976-07-05T00:00:00Z">2</int> <int name="1976-07-06T00:00:00Z">0</int> <int name="1976-07-07T00:00:00Z">0</int> <int name="1976-07-08T00:00:00Z">0</int> <int name="1976-07-09T00:00:00Z">0</int> <int name="1976-07-10T00:00:00Z">0</int> <int name="1976-07-11T00:00:00Z">0</int> <int name="1976-07-12T00:00:00Z">1</int> <int name="1976-07-13T00:00:00Z">1</int> <int name="1976-07-14T00:00:00Z">0</int> <int name="1976-07-15T00:00:00Z">2</int> <int name="1976-07-16T00:00:00Z">0</int> <int name="1976-07-17T00:00:00Z">0</int> <int name="1976-07-18T00:00:00Z">0</int> <int name="1976-07-19T00:00:00Z">0</int> <int name="1976-07-20T00:00:00Z">0</int> <int name="1976-07-21T00:00:00Z">1</int> <int name="1976-07-22T00:00:00Z">0</int> <int name="1976-07-23T00:00:00Z">0</int> <int name="1976-07-24T00:00:00Z">0</int> <int name="1976-07-25T00:00:00Z">0</int> <int name="1976-07-26T00:00:00Z">0</int> <int name="1976-07-27T00:00:00Z">0</int> <int name="1976-07-28T00:00:00Z">0</int> <int name="1976-07-29T00:00:00Z">0</int> <int name="1976-07-30T00:00:00Z">1</int> <int name="1976-07-31T00:00:00Z">0</int> <str name="gap">+1DAY</str> <date name="start">1976-07-01T00:00:00Z</date> <date name="end">1976-08-01T00:00:00Z</date> <int name="before">2</int> <int name="after">1</int> <int name="between">11</int> </lst> </lst> <lst name="facet_ranges"/> </lst> </response>