Re: Filter query and Faceting problem

2016-02-18 Thread Filippo La Torre
Thank you Alessandro for the suggestion (i have to investigate about solrJ), and thank you Mikhail for the explanation. My problem isn’t related to that simple query and it don't depends on framework java. Maybe i’m not smart enough, but if i have this query: WHERE (macro_category = DRINKS AND m

Re: Filter query and Faceting problem

2016-02-18 Thread Alessandro Benedetti
As Mikhail suggests, are you sure spring data solr is the right tool for you ? Probably is a great tool for a newbie ( to be honest I just noticed it right now) but maybe you need a more customisable approach to build tag/exclusion filter queries on top of facets. You could use spring data but then

Re: Filter query and Faceting problem

2016-02-18 Thread Mikhail Khludnev
Tagging works only in the way I describe. Otherwise you might need to need issue separate queries. However, are you sure that this case shouldn't be done in more regular way: fq={!tag=foo}department:foods&fq={!tag=foo}macro_category.key:(drinks food) On Thu, Feb 18, 2016 at 1:48 PM, Filippo La Tor

Re: Filter query and Faceting problem

2016-02-18 Thread Filippo La Torre
Hi, thank for your response. The problem is that i make this query by Spring Data Solr and i have to make complex AND/OR. Example : ( department:foods AND macro_category.key:drinks) OR ( department:foods AND macro_category.key:food) What is the best practice the make complex AND/OR query and t

Re: Filter query and Faceting problem

2016-02-18 Thread Mikhail Khludnev
just do fq={!tag=DEPARTMENT}department:foods&fq={!tag=MACROCATEGORY}macro_category.key:drinks tagging in the middle of the query may somehow work, but it's not a recommended way. On Thu, Feb 18, 2016 at 11:48 AM, Filippo La Torre < filippo.lato...@stentle.com> wrote: > Hello everyone, > > this is

Filter query and Faceting problem

2016-02-18 Thread Filippo La Torre
Hello everyone, this is my first mail to solr user mailing list. I’m new to Solr too, my Solr version is 5.4.1. I have a problem with filter query and faceting, i have to make a filter query with AND/OR using also faceting (i will make this query using Spring Data Solr). It seems that the same f