Opened 8 years ago

Closed 8 years ago

#27251 closed Bug (duplicate)

Cannot combine multiple SearchQuery objects

Reported by: Jaap Roes Owned by:
Component: contrib.postgres Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

According to the docs:

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.

Change History (1)

comment:1 by Claude Paroz, 8 years ago

Resolution: duplicate
Status: newclosed

Should be fixed in #27143.

Note: See TracTickets for help on using tickets.
Back to Top