Feels like we should open an issue for this (that facet.method=uif is only respected if you specify another esoteric parameter...)
-Yonik On Mon, Feb 12, 2018 at 8:34 PM, Wei <weiwan...@gmail.com> wrote: > Adding facet.distrib.mco=true did the trick. Thanks Toke and Alessandro! > > Cheers, > Wei > > On Thu, Feb 8, 2018 at 1:23 AM, Toke Eskildsen <t...@kb.dk> wrote: > >> On Fri, 2018-02-02 at 17:40 -0800, Wei wrote: >> > I tried to debug a bit and see that when executing on a cloud solr >> > server, although I put >> > facet.field=color&q=*:*&facet.method=uif&facet.mincount=1 in >> > the request url, at the point it reaches SimpleFacet inside >> > req.params it somehow has been rewritten >> > to f.color.facet.mincount=0, no wonder the >> > method chosen become FC. So one myth solved; but the new myth is why >> > the facet.mincount is override to 0 in solr req? >> >> AFAIK, it is due to an attempt of optimisation for distributed >> faceting. The relevant JIRA seems to be https://issues.apache.org/jira/ >> browse/SOLR-8988 >> >> Try setting facet.distrib.mco=true >> >> - Toke Eskildsen, Royal Danish Library >> >>