Changes between Initial Version and Version 1 of Ticket #30637


Ignore:
Timestamp:
Jul 14, 2019, 2:04:06 AM (5 years ago)
Author:
Dani Hodovic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30637 – Description

    initial v1  
    9696  }}}
    9797}}}
     98
     99I have also tried casting the "text_search" field into a SearchVector, but that also fails.
     100{{{
     101#!div style="font-size: 80%"
     102Code highlighting:
     103  {{{#!python
     104  JobPosting.objects.annotate(full_text=(SearchVector("role") + Cast("text_search", SearchVector()))).filter(full_text=SearchQuery("foo"))
     105  TypeError: SearchVector can only be combined with other SearchVectors
     106  }}}
     107}}}
Back to Top