#29582: SearchVector doesn't support querying non-text fields
-------------------------------------+-------------------------------------
Reporter: mickaelmarin | Owner: nobody
Type: Bug | Status: closed
Component: contrib.postgres | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
Andrew, thanks for chiming in and reporting this issue.
I guess an alternate solution would be to keep wrapping the
`source_expressions` in `Coalesce` but use an extra `Cast(expr,
CharField)` if `not isinstance(expr.output_field, (CharField, TextField)`
and revert to using the `||` operator. I think that should work unless I'm
missing something.
Please file a new issue and mark the severity to ''Release Blocker''
against 2.2. Feel free to assign the issue to `charettes` as I should have
a few hours to dedicate to that in the next few days.
--
Ticket URL: <https://code.djangoproject.com/ticket/29582#comment:6>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.88da89afa32e9362334fc43ef4e7af9d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.