I'm not sure if this restriction makes sense. In SQL it seems to be
allowed e.g.:
`SELECT to_tsquery('simple', 'working') || to_tsquery('english',
'working');`
`'working' | 'work'`
--
Ticket URL: <https://code.djangoproject.com/ticket/29997>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Jaap Roes
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:1>
* type: Cleanup/optimization => Bug
Comment:
I ran `git bisect` and technically this is a regression from commit
978a00e39fee25cfa99065285b0de88366710fad
Before that commit this works:
`search.SearchQuery("foo", config="simple") | search.SearchQuery("bar",
config="english")`
Afterwards it doesn't
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:2>
* stage: Unreviewed => Accepted
Comment:
Thanks for the bisect sleuthing here. Given this is a regression in 1.11
I'm not sure this qualifies for a backport for 2.1 at this point.
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:3>
* version: master => 1.11
* component: Database layer (models, ORM) => contrib.postgres
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:4>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
Before merging, I'll give the original author some time to respond to the
question about why the restriction was added. The patch looks fine.
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:5>
Comment (by Jaap Roes):
fwiw, I think the `config` equality check was copied from the
implementation of `SearchVectorCombinable`. The validity of that check
there is also questioned by at least one person (see ticket #28528)
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"8a1a9194686881e32d0e3aed52d7f4150238530c" 8a1a9194]:
{{{
#!CommitTicketReference repository=""
revision="8a1a9194686881e32d0e3aed52d7f4150238530c"
Fixed #29997 -- Allowed combining SearchQuerys with different configs.
Seems to be a needless restriction in
978a00e39fee25cfa99065285b0de88366710fad.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29997#comment:7>