toastdriven/django-haystack — Issue #522: Chained filters not working with Solr (2.0.0beta)
Author: dlo
Created: 2012-03-01 21:11:38+00:00
State: open

I'm using the following query:

sqs = sqs \
.filter(members_only=members_only) \
.filter(reservation_required=reservation_required) \
.filter(walk_ins_welcome=walk_ins_welcome) \
.auto_query(query) \
.dwithin('location', center, max_dist)

Solr fails with the following error:

Failed to query Solr using '(members_only:(true) AND reservation_required:(true) AND walk_ins_welcome:(true) AND )': [Reason: None]

Error 400 org.apache.lucene.queryParser.ParseException: Cannot parse '(members_only:(true) AND reservation_required:(true) AND walk_ins_welcome:(true) AND )': Encountered " ")" ") "" at line 1, column 85.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ... <TERM> ... "*" ...

HTTP ERROR 400

Problem accessing /solr/select/. Reason:

org.apache.lucene.queryParser.ParseException: Cannot parse '(members_only:(true) AND reservation_required:(true) AND walk_ins_welcome:(true) AND )': Encountered " ")" ") "" at line 1, column 85.Was expecting one of: ... "+" ... "-" ... "(" ... "*" ... ... ... ... ... "[" ... "{" ... ... ... "*" ...

Powered by Jetty://