toastdriven/django-haystack — Issue #454: Faceting drill down not working
Author: tejinderss
Created: 2011-11-29 12:04:47+00:00
State: open

I have installed xapian back end and using faceting search. I have followed this tutorial:
http://docs.haystacksearch.org/dev/faceting.html

Now whenever i click on facet result to narrow down the results, in the url i have something like:

?q=test&selected_facets=nonalcoholic_ingredients_exact:foo

Works as expected, the search gets drilled down to the results which contains 'foo'.
Now i again click on some other faceted list option to narrow down the results to say results containing 'foo' and 'bar'. So the url gets constructed as follow:

?q=test&selected_facets=nonalcoholic_ingredients_exact:foo&alcoholic_ingredients_exact:bar

Now i dont get expected results, i get back the results which contain either 'foo' or 'bar'. The result is an OR operation rather than AND. It gets more surprising if i use url parameter of field which does not exist example:
?q=test&selected_facets=nonalcoholic_ingredients_exact:foo&alcoholic_ingredients_exact:does_not_exist

Yet it gives back the results with 'foo' in it. Please guide, how do i accomplish the expected behavior?