Re: Filter with strings containing "OR" or "AND" gives incorrect results

44 views
Skip to first unread message

Dan Watson

unread,
May 28, 2013, 1:41:53 PM5/28/13
to django-...@googlegroups.com
Hi Arun,

Which backend are you using? Does it work if you use haystack.inputs.Exact? And when you say "invalid results", what do you mean -- are you getting an error, no results, or unexpected results?

Regards,
Dan

On Monday, May 20, 2013 2:04:01 PM UTC-4, Arun Shanker Prasad wrote:
Hi,

I have an issue, when filtering using strings like "OR" or "AND".

My application is searching based on the US state codes, and when we search for Oregon, using the state code "OR", it seems to return invalid results. I tried cleaning the string, using "haystack.inputs.Clean", but also does not seem to work.

Has anyone else had similar issues? Am I doing something wrong, can someone please advice.

Thanks,
Arun.

Arun Shanker Prasad

unread,
May 28, 2013, 4:13:54 PM5/28/13
to django-...@googlegroups.com
Hi Dan,

Thanks for your response, please find my answers below;
    • Which backend are you using?
      • Elasticsearch
    • What I meant by invalid resuts
      • The result set seems to fetch all the records, i.e it does not do anything in based the filter 's
    Thanks,
    Arun.
    Reply all
    Reply to author
    Forward
    0 new messages