title: RavenDB Query not working
body: <p>I can't seem to get this to work.</p>
  
  <p>Basically I have a site that got a list of excluded brands and categories. which are stored like brands/1 category/123</p>
  
  <p>I'm trying to query my product document and return first 20 results that don't have any excluded categories/ brands.</p>
  
  <pre><code>using (var session = documentStore.OpenSession())
   {
        var site = session.Load&lt;Site&gt;(193);
  
  
        List&lt;string&gt; excludedCategories =  session.Load&lt;Category&gt;(site.ExcludedCategories).Select(a =&gt; string.Format("brands/{0}",a.Id)).ToList();
        var excludedBrands = session.Load&lt;Brand&gt;(site.ExcludedBrands).Select(a =&gt; string.Format("categories/{0}",a.Id)).ToList();
  
  
        List&lt;Product&gt; ps = session.Query&lt;Product&gt;()
                                  .Where(prod =&gt; excludedBrands.Any(a =&gt; !prod.Brands.Contains(a)) 
                                              &amp;&amp; excludedCategories.Any(a =&gt; !prod.Categories.Contains(a)))
                                  .OrderBy(a=&gt;a.ProductGroup)
                                  .Take(20)
                                  .ToList();
  }
  </code></pre>
  
  <p>Anyone let me know if I'm on the right lines?</p>
  
  <p>Currently getting the following error:</p>
  
  <p>Lucene.Net.QueryParsers.ParseException: Could not parse: '(<em>:</em> AND) AND -(<em>:</em> AND)' ---> Lucene.Net.QueryParsers.ParseException: Cannot parse '(<em>:</em> AND) AND -(<em>:</em> AND)': Encountered " ")" ") "" at line 1, column 8.
  Was expecting one of:
       ...
      "+" ...
      "-" ...
      "(" ...
      "<em>" ...
       ...
       ...
       ...
       ...
      "[" ...
      "{" ...
       ...
       ...
      "</em>" ...
       ---> Lucene.Net.QueryParsers.ParseException: Encountered " ")" ") "" at line 1, column 8.
  Was expecting one of:
       ...
      "+" ...
      "-" ...
      "(" ...
      "*" ...
       ...
       ...
       ...
       ...
      "[" ...
      "{" ...
       ...
       ...</p>