Re: Solr facet multiple constraint

2012-07-20 Thread Erick Erickson
NP, glad it's working for you! On Fri, Jul 20, 2012 at 8:26 AM, davidbougearel wrote: > I have tried and it works ! > > Thanks again a lot for this dude ! > > Regards, > David. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-facet-multiple-constraint-tp399297

Re: Solr facet multiple constraint

2012-07-20 Thread davidbougearel
I have tried and it works ! Thanks again a lot for this dude ! Regards, David. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-facet-multiple-constraint-tp3992974p3996189.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr facet multiple constraint

2012-07-20 Thread davidbougearel
Ok it's nice a facet query, i will try this feature and will reply you but i think that's the point, thanks a lot for time spent :) -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-facet-multiple-constraint-tp3992974p3996186.html Sent from the Solr - User mailing list ar

Re: Solr facet multiple constraint

2012-07-17 Thread Erick Erickson
OK, maybe I'm finally getting it. When you do a facet.field=blahblah, you're telling Solr to take all the documents that match the query, look in field blahblah, and tally the documents that match _any_ value in the field. There's no restriction at all on the _values_ that that tally is made for.

Re: Solr facet multiple constraint

2012-07-16 Thread davidbougearel
Ok i'm added the debug, there is the query from the response after executing query : facet=true,sort=publishingdate desc,debugQuery=true,facet.mincount=1,q=service:1 AND publicationstatus:LIVE,facet.field=pillar,wt=javabin,fq=(((pillar:10))),version=2}},response={numFound=2,start=0,docs=[SolrDocum

Re: Solr facet multiple constraint

2012-07-14 Thread Erick Erickson
What do you get when you attach &debugQuery=on? That should show you the parsed query. You might paste that. Erick On Fri, Jul 13, 2012 at 1:14 AM, davidbougearel wrote: > Ok well i know about the complexity that i can put into fq with AND and OR > conditions but at the moment when i put fq=user

Re: Solr facet multiple constraint

2012-07-12 Thread davidbougearel
Ok well i know about the complexity that i can put into fq with AND and OR conditions but at the moment when i put fq=user:10,facet.field=user, the query returns me all the facets not taking into account the fq=user:10 that's the problem. -- View this message in context: http://lucene.472066.n3.n

Re: Solr facet multiple constraint

2012-07-12 Thread Erick Erickson
Sure, you can have as complex an FQ clause as you need. Best Erick On Thu, Jul 12, 2012 at 1:48 AM, davidbougearel wrote: > Ok this is the id but in fact (sorry about this) my wish is the reverse, i > want to get just the facet for which a have the right so i want to put > fq=user:10 in order to

Re: Solr facet multiple constraint

2012-07-11 Thread davidbougearel
Ok this is the id but in fact (sorry about this) my wish is the reverse, i want to get just the facet for which a have the right so i want to put fq=user:10 in order to get only facet with user:10. In my fq i can have something like user:10 AND user:3 because it's auto generated by rights of my ap

Re: Solr facet multiple constraint

2012-07-11 Thread Erick Erickson
OK, would it work just add an fq clause fq=-user:10? Or, depending on your Solr, fq=*:* -user:10? Best Erick On Tue, Jul 10, 2012 at 5:45 AM, davidbougearel wrote: > Ok sorry to not be clear and thanks again for your answers. > > q=service%3A1+AND+publicationstatus%3ALIVE&sort=publishingdate+des

Re: Solr facet multiple constraint

2012-07-10 Thread davidbougearel
Ok sorry to not be clear and thanks again for your answers. q=service%3A1+AND+publicationstatus%3ALIVE&sort=publishingdate+desc&fq=%7B%21ex%3Ddt%7D%28%28%28user%3A10%29%29%29&facet.field=%7B%21tag%3Ddt%7Duser&facet=true&facet.mincount=1 Here with this query i want to get all the documents (the el

Re: Solr facet multiple constraint

2012-07-09 Thread Erick Erickson
You still haven't given a clear (at least to me) statement of what you see and what about it isn't what you expect. Please give some concrete examples. Best Erick On Mon, Jul 9, 2012 at 3:45 AM, davidbougearel wrote: > Thanks for answer, > > Actually when i put 'it's not working' it means that i

Re: Solr facet multiple constraint

2012-07-09 Thread davidbougearel
Thanks for answer, Actually when i put 'it's not working' it means that it's not the result expected : the result return me data tagged by all the facets not only the facet that i ask for with the constraint. Hope you will help me. Best regards, David. -- View this message in context: http://

Re: Solr facet multiple constraint

2012-07-06 Thread Erick Erickson
What does "doesn't work" mean? returning no results? Not returning facets? returning incorrect facet counts? You might review: http://wiki.apache.org/solr/UsingMailingLists Best Erick On Fri, Jul 6, 2012 at 1:37 AM, davidbougearel wrote: > Well thanks for your answer, in fact i've written what

Re: Solr facet multiple constraint

2012-07-05 Thread davidbougearel
Well thanks for your answer, in fact i've written what the QueryResponse return as the solr query here is my real solr query before use the executeQuery : q=service%3A1+AND+publicationstatus%3ALIVE&sort=publishingdate+desc&fq=%7B%21ex%3Ddt%7D%28%28%28user%3A10%29%29%29&facet.field=%7B%21tag%3Ddt%7

Re: Solr facet multiple constraint

2012-07-05 Thread Erick Erickson
Well, to start with this query is totally messed up. facet=true,sort=publishingdate desc,facet.mincount=1,q=service:1 AND publicationstatus:LIVE,facet.field={!ex=dt}user,wt=javabin,fq={!tag=dt}user:10,version=2 You've put in commas where you should have ampersands to separate parameters=value pai

Re: Solr facet multiple constraint

2012-07-04 Thread davidbougearel
Please someone can help me, we are a team waiting for a fix. We try several ways to implement it without success. Thanks for reading anyway, David. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-facet-multiple-constraint-tp3992974p3993119.html Sent from the Solr - Use