Hi Vignesh,
On Thu, Apr 26, 2012 at 21:24, Vignesh Sarma <
vig...@recruiterbox.com> wrote:
>[...]
> I have to support the search function like,
> AND, OR, etc..
>
> Right now since haystack conjuncts with either AND or OR I can not support
> the other.My back-end is solr, which supports these function all by default.
Maybe I'm misunderstanding the issue but have you seen SQ objects
http://django-haystack.readthedocs.org/en/latest/searchquery_api.html#sq-objects
"For expressing more complex queries, especially involving AND/OR/NOT
in different combinations, you should use SQ objects. Like
django.db.models.Q objects, SQ objects can be passed to
SearchQuerySet.filter and use the familiar unary operators (&, | and
~) to generate complex parts of the query."
Cheers,
Danny