Haystack SearchQuery boolean filter not working

I switched from Whoosh to ElasticSearch to be haystack search engine. Now I
am facing a problem with Elastic search. If I am preforming one filter
everything is working. But when filter the output I get from the first
filter it gives me SearchParseException - Failed to parse query [(( AND
city:(xxx)))]

Here is my code:

filterCity = True
results = SearchQuerySet().filter(content='Me')if filterCity:
results = results.filter_and(city='xxx')

Note this sample code was working using whoosh.

Any Idea how to solve this. Thanks alot in advance

--

I think the problem is in Haystack and how it communicates with
Elasticsearch. Perhaps best to ask their community for help?

On Tuesday, November 13, 2012 7:48:25 AM UTC+13, Salma Hamed wrote:

I switched from Whoosh to Elasticsearch to be haystack search engine. Now
I am facing a problem with Elastic search. If I am preforming one filter
everything is working. But when filter the output I get from the first
filter it gives me SearchParseException - Failed to parse query [(( AND
city:(xxx)))]

Here is my code:

filterCity = True
results = SearchQuerySet().filter(content='Me')if filterCity:
results = results.filter_and(city='xxx')

Note this sample code was working using whoosh.

Any Idea how to solve this. Thanks alot in advance

--