Haystack quates the multiword query instead how to pass unquated query?

My solr query is q=xyz OR abc. I am entering this in haystack form. haystack quotes the query q="xyz OR abc" so OR does not work, so how to achieve this behavior via haystack. In haystack form I should be able to do "q=xyz OR abc AND jkl"

Answers


Example from the docs:

from haystack.query import SQ

# We want "title: Foo AND (tags:bar OR tags:moof)"
sqs = SearchQuerySet().filter(title='Foo').filter(SQ(tags='bar') | SQ(tags='moof'))

Need Your Help

Link Youtube Channel In Wordpress Site

wordpress youtube

I am trying to develop a site where people can find and view videos of my activities from my youtube channel. I am quite new to wordpress but I decided to use it to achieve this purpose.

Embed the PDF in a webpage without using the built-in PDF viewer

php javascript html pdf pdf-viewer

Currently I am using the standard way to embed an pdf to the browser, however, the built-in pdf viewer for my target browser is not working as expected. I would like to force (Chrome, Firefox and I...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.