Re: Query on Facet

2014-08-02 Thread Umesh Prasad
You can use pivot faceting. https://wiki.apache.org/solr/SimpleFacetParameters#Pivot_.28ie_Decision_Tree.29_Faceting There is no index time work required and you can nest the facets at search time as for your need. PS : It won't work with SolrCloud / Sharded Index .. SOLR-2894 is in progress if

Re: Query on Facet

2014-07-30 Thread Alexandre Rafalovitch
Now it sounds like maybe you have nested facets as opposed to just different ones. See if one of these fits your use case better: http://wiki.apache.org/solr/HierarchicalFaceting Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://www.solr-

Re: Query on Facet

2014-07-30 Thread Smitha Rajiv
Hi All, We have tried both exclude option as well as facet query. Both approach are not giving us the desired results. I will explain a little further. I have first level facets - Paperback and Ebook, and second level facets include a list of languages like English, French etc.. When user select

Re: Query on Facet

2014-07-30 Thread Sujit Pal
Hi Smitha, Have you looked at Facet queries? It allows you to attach Solr queries to facets. The problem with this is that you will need to know all possible combinations of language and binding (or make an initial query to find this information). https://wiki.apache.org/solr/SimpleFacetParameter

Re: Query on Facet

2014-07-30 Thread vamshi kiran
Hi Alex, As you said If we exclude language facet field ,it will get all the language facets with count right ? It Will not filter by binding facet field of type 'paperback' , how can we do this ? Thanks & Regards, Vamshi. On Jul 30, 2014 4:11 PM, "Alexandre Rafalovitch" wrote: > I am not sure

Re: Query on Facet

2014-07-30 Thread Alexandre Rafalovitch
I am not sure I fully understood your question, but I would start by looking at Tagging and Excluding first: https://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http:

Query on Facet

2014-07-30 Thread Smitha Rajiv
Hi, I need some help on Solr Faceting. How do I facet on two fields at the same time to get combination facets and its count? I'm using below query to get facets with combination of language and its binding. But now I'm getting only selected facet in facetList of each field and its count. Fo

Re: Query on facet field¹s count

2011-05-25 Thread rajini maski
t=-1&f.StudyID.facet.namedistinct=1> >> >> Would do what you want I believe... >> >> >> >> On 3/11/11 8:51 AM, "Bill Bell" wrote: >> >> >There is my patch to do that. SOLR-2242 >> > >> >Bill Bell >> >Sent

Re: Query on facet field¹s count

2011-03-15 Thread William Bell
> Would do what you want I believe... >> >> >> >> On 3/11/11 8:51 AM, "Bill Bell" wrote: >> >> >There is my patch to do that. SOLR-2242 >> > >> >Bill Bell >> >Sent from mobile >> > >> > >>

Re: Query on facet field’s count

2011-03-14 Thread Jonathan Rochkind
x27;s simple to count the members of the list yourself... Best Erick On Fri, Mar 11, 2011 at 3:34 AM, rajini maski wrote: Query on facet field results... When I run a facet query on some field say : facet=on& facet.field=StudyID I get list of distinct StudyID list with the count that

Re: Query on facet field¹s count

2011-03-11 Thread rajini maski
atch to do that. SOLR-2242 > > > >Bill Bell > >Sent from mobile > > > > > >On Mar 11, 2011, at 1:34 AM, rajini maski wrote: > > > >> Query on facet field results... > >> > >> > >> When I run a facet query on some field

Re: Query on facet field¹s count

2011-03-11 Thread Bill Bell
>Bill Bell >Sent from mobile > > >On Mar 11, 2011, at 1:34 AM, rajini maski wrote: > >> Query on facet field results... >> >> >> When I run a facet query on some field say : facet=on & >> facet.field=StudyID I get list of distinct StudyID li

Re: Query on facet field’s count

2011-03-11 Thread Bill Bell
There is my patch to do that. SOLR-2242 Bill Bell Sent from mobile On Mar 11, 2011, at 1:34 AM, rajini maski wrote: > Query on facet field results... > > > When I run a facet query on some field say : facet=on & > facet.field=StudyID I get list of distinct StudyID

Re: Query on facet field’s count

2011-03-11 Thread Erick Erickson
There's nothing that I know of that gives you this, but it's simple to count the members of the list yourself... Best Erick On Fri, Mar 11, 2011 at 3:34 AM, rajini maski wrote: > Query on facet field results... > > >       When I run a facet query on some field say : fa

Query on facet field’s count

2011-03-11 Thread rajini maski
Query on facet field results... When I run a facet query on some field say : facet=on & facet.field=StudyID I get list of distinct StudyID list with the count that tells that how many times did this study occur in the search query. But I also needed the count of these distinct Stu