title: How to combine BooleanQuery and Filter for Lucene?
body: <p>I'm wondering if there's a way to perform a filtered search in Lucene index with a combination of Filter and Query instead of a BooleanQuery? </p>
  
  <p>Since performing a query causes calculation of relevance rating, we don't really need this when filtering documents by category or location.</p>
  
  <p>For example: we have a query "happy new year" which should be performed within "Greeting Cards / XMas" category. So what we really need is to do a search within the category and then order the results by a relevance rating, based on a query text.</p>
  
  <p>If we try to do it with a BooleanQuery, relevance rating calculation considers every term in a query (if I understand the mechanics correctly). </p>