[https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/search/#searchquery
SearchQuery] terms can be combined logically to provide more flexibility
This works for two SearchQuery objects
{{{
>>> SearchQuery('foo') | SearchQuery('bar')
<CombinedExpression: SearchQuery(foo) || SearchQuery(bar)>
}}}
But any more than that and an exception is raised:
{{{
>>> SearchQuery('foo') | SearchQuery('bar') | SearchQuery('baz')
NotImplementedError: Use .bitand() and .bitor() for bitwise logical
operations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27251>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0
Comment:
Should be fixed in #27143.
--
Ticket URL: <https://code.djangoproject.com/ticket/27251#comment:1>