Re: Restricting/Filtering facet results

2016-01-21 Thread Erick Erickson
Yes, you'll get one facet back, but you can specify multiple facet.query clauses, as &facet.query=field:UserB &facet.query=field:UserC and get two back. Best, Erick On Thu, Jan 21, 2016 at 7:43 AM, Achim Domma wrote: > If I specify the query like this, I will get only one facet back. Or am > I

Re: Restricting/Filtering facet results

2016-01-21 Thread Achim Domma
If I specify the query like this, I will get only one facet back. Or am I wrong? I would have to specify one query for UserB and one for UserC. My filter list can contain thousands of users, so specifying individual queries is not an option. On 21.01.2016 11:43, Binoy Dalal wrote: > The facet.quer

Re: Restricting/Filtering facet results

2016-01-21 Thread Binoy Dalal
The facet.query parameter is what you're looking for. Use it like so: &facet.query=field:(UserB OR UserC) Check out the wiki for more details On Thu, 21 Jan 2016, 14:41 Achim Domma wrote: > Hi, > > is there some way to restrict/filter the facetting results? Our use case > is the following: > > O

Restricting/Filtering facet results

2016-01-21 Thread Achim Domma
Hi, is there some way to restrict/filter the facetting results? Our use case is the following: Our documents have a multi value field, which holds user ids, so the values might be like this: doc1 = ['UserA', 'UserB', 'UserC'] doc2 = ['UserA', 'UserB'] doc3 = ['UserA', 'UserC'] Now I execute a s