<p>When doing a FTS remember to cast the expression to text, e.g. <code>queryset.annotate(casted_field=Cast('field', TextField())).annotate(vector=SearchVector('casted_field')).filter(vector=value)</code>. This allows even UUID fields to be searchable.</p>
By clicking “Accept cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.