Re: facet.method=uif not working in solr cloud?

2018-02-15 Thread Yonik Seeley
On Wed, Feb 14, 2018 at 7:24 PM, Wei wrote: > Thanks Yonik. If uif has big upfront cost when hits solr the first time, > in solr cloud the same faceting request could hit different replicas in the > same shard, so that cost will happen at least for the number of replicas? >

Re: facet.method=uif not working in solr cloud?

2018-02-14 Thread Wei
Thanks Yonik. If uif has big upfront cost when hits solr the first time, in solr cloud the same faceting request could hit different replicas in the same shard, so that cost will happen at least for the number of replicas? If we are doing frequent auto commits, fieldvaluecache will be invalidated

Re: facet.method=uif not working in solr cloud?

2018-02-14 Thread Yonik Seeley
On Wed, Feb 14, 2018 at 2:28 PM, Wei wrote: > Thanks all! It's really great learning. A bit off the topic, after I > enabled facet.method = uif in solr cloud, the faceting performance is > actually much worse than the original fc( ~1000 ms with uif vs ~200 ms > with fc).

Re: facet.method=uif not working in solr cloud?

2018-02-14 Thread Wei
Thanks all! It's really great learning. A bit off the topic, after I enabled facet.method = uif in solr cloud, the faceting performance is actually much worse than the original fc( ~1000 ms with uif vs ~200 ms with fc). My cloud has 8 shards with 6 replicas in each shard. I do see that

Re: facet.method=uif not working in solr cloud?

2018-02-13 Thread Yonik Seeley
Great, thanks for tracking that down! It's interesting that a mincount of 0 disables uif processing in the first place. IIRC, it's only the hash-based method (as opposed to array-based) that can't return zero counts. -Yonik On Tue, Feb 13, 2018 at 6:17 AM, Alessandro Benedetti

Re: facet.method=uif not working in solr cloud?

2018-02-13 Thread Alessandro Benedetti
*Update* : This has been actually already solved by Hoss. https://issues.apache.org/jira/browse/SOLR-11711 and this is the Pull Request : https://github.com/apache/lucene-solr/pull/279/files This should go live with 7.3 Cheers - --- Alessandro Benedetti Search Consultant, R

Re: facet.method=uif not working in solr cloud?

2018-02-13 Thread Alessandro Benedetti
+1 I believe it is a bug related to that patch in some way. facet.distrib.mco ( the naming is not very explicit) should activate the feature in the patch, which forces the mincount in the distributed requests to be set to 1. The normal behavior expected is that you pass to the distributed

Re: facet.method=uif not working in solr cloud?

2018-02-12 Thread Yonik Seeley
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 wrote: > Adding facet.distrib.mco=true did the trick. Thanks Toke and Alessandro! > > Cheers, >

Re: facet.method=uif not working in solr cloud?

2018-02-12 Thread Wei
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 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

Re: facet.method=uif not working in solr cloud?

2018-02-08 Thread Toke Eskildsen
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=*:*=uif=1 in > the request url, at the point it reaches SimpleFacet inside > req.params it somehow has been rewritten > to  

Re: facet.method=uif not working in solr cloud?

2018-02-05 Thread Alessandro Benedetti
What happens if you set f.color.facet.mincount=1 from the beginning ? Are you faceting on multiple fields ? Good news we found out the first mistery though ! :) Cheers - --- Alessandro Benedetti Search Consultant, R Software Engineer, Director Sease Ltd. - www.sease.io -- Sent

Re: facet.method=uif not working in solr cloud?

2018-02-02 Thread Wei
I tried to debug a bit and see that when executing on a cloud solr server, although I put facet.field=color=*:*=uif=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

Re: facet.method=uif not working in solr cloud?

2018-02-01 Thread Alessandro Benedetti
" Looks like when using the json facet api, SimpleFacets is not used, replaced by FacetFieldPorcessorByArrayUIF " That is expected, I remember Yonik to stress the fact that it is a completely different approach to faceting ( and different components and classes are involved). But your first

Re: facet.method=uif not working in solr cloud?

2018-01-31 Thread Wei
Thanks Alessandro. Totally agree that from the logic I can't see why the requested facet.method=uif is not accepted. I don't see anything in solr.log also. However I find that the uif method somehow works with json facet api in cloud mode, e.g: curl

Re: facet.method=uif not working in solr cloud?

2018-01-31 Thread Alessandro Benedetti
I worked personally on the SimpleFacets class which does the facet method selection : FacetMethod appliedFacetMethod = selectFacetMethod(field, sf, requestedMethod, mincount, exists); RTimer timer = null; if (fdebug != null)

facet.method=uif not working in solr cloud?

2018-01-30 Thread Wei
Hi, I am using the following parameters for faceting, request solr to use the UIF method; =on=color=*:*=uif=1=true It works as expected in my local standalone solr: - facet-debug: { - elapse: 2, - sub-facet: [ - { - processor: