I don't quite know whether it's a typo, but the query you pasted doesn't have an ampersand between the clauses.
I'd peel this back and build up my fq clause one bit at a time, I suspect you have a typo, unbalanced parens etc., assuming it isn't just the ampersand. Best, Erick On Tue, Jun 28, 2016 at 12:02 AM, Vasu Y <vya...@yahoo.com.invalid> wrote: > Hi, I am trying to apply a post filter by using frange and in the same > filter, I also need to use boolean queries. When I try this, I get Syntax > error. Is there a way to achieve this without writing my own Post Filter > Class? > Here is what the query & fq looks like: > q=Name:test* > fq={!frange l=0 u=0 cost=100 cache=false} (Category: category1) AND > sub(NumDomains,sum(termfreq(Domain,domain1), termfreq(Domain,domain2), > termfreq(Domain,domain3))) AND ((Author: author1) OR ((Type:(type1 OR type2)) > AND (Id: id1 or id2))) Error Message:"error": { "msg": > "org.apache.solr.search.SyntaxError: Expected identifier at pos 1 str=' > (Category: category1) AND sub(NumDomains,sum(termfreq(Domain,domain1), > termfreq(Domain,domain2), termfreq(Domain,domain3))) AND ((Author: author1) > OR ((Type:(type1 OR type2)) AND (Id: id1 or id2)))'" "code": 400} > Thanks,Vasu