#27251: Cannot combine multiple SearchQuery objects ----------------------------------+------------------ Reporter: jaap3 | Owner: Type: Bug | Status: new Component: contrib.postgres | Version: 1.10 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------+------------------ According to the docs:
[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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/048.4a433381d9a79aecf3ac4069150811f9%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.