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:

Re: Query on facet field¹s count

2011-05-25 Thread rajini maski
Sorry for the late reply to this thread. I implemented the same patch (solr 2242 )in Solr 1.4.1. Now I am able to get distinct facet terms count across single index. But this does not work for distributed process(sharding)..Is there a recent patch that has same functionality for distributed proces

Re: Query on facet field¹s count

2011-03-15 Thread William Bell
My patch is for 4.0 trunk. On Fri, Mar 11, 2011 at 10:05 PM, rajini maski wrote: > Thanks Bill Bell . .This query works after applying the patch you refered > to, is it? Please can you let me know how do I need to update the current > war (apache solr 1.4.1 )file with this new patch? Thanks a lot

Re: Query on facet field’s count

2011-03-14 Thread Jonathan Rochkind
It's not easy if you have lots of facet values (in my case, can even be up to a million), but there is no way built-in to Solr to get this. I have been told that some of the faceting strategies (there are actually several in use in Solr based on your parameters and the nature of your data) ret

Re: Query on facet field¹s count

2011-03-11 Thread rajini maski
Thanks Bill Bell . .This query works after applying the patch you refered to, is it? Please can you let me know how do I need to update the current war (apache solr 1.4.1 )file with this new patch? Thanks a lot. Thanks, Rajani On Sat, Mar 12, 2011 at 8:56 AM, Bill Bell wrote: > http://localhost

Re: Query on facet field¹s count

2011-03-11 Thread Bill Bell
http://localhost:8983/solr/select?q=*:*&facet=true&facet.field=StudyID&face t.mincount=1&facet.limit=-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 from mobile > > >On Mar

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 list with the count t

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 : facet=on & > facet.field=Stu