Skip to content
All lessons

Tech Insights

When doing a FTS remember to cast the expression to text, e.g. `queryset.annotate(casted_field=Cast('field', TextField())).an...

When doing a FTS remember to cast the expression to text, e.g. queryset.annotate(casted_field=Cast('field', TextField())).annotate(vector=SearchVector('casted_field')).filter(vector=value). This allows even UUID fields to be searchable.

Shared by

  • Django
  • Full Text Search

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us