I have installed UnaccentExtension in Django but I'm having problems using it with this search:
vector = SearchVector('title__unaccent', 'abstract__unaccent')
query = SearchQuery(word) | SearchQuery(word2)
files = Doc.objects.annotate(rank=SearchRank(vector, query)).order_by('-rank')
This is the error:
Cannot resolve keyword 'unaccent' into field. Join on 'title' not permitted.
Whit a simplest search it works fine:
Doc.objects.filter(title__unaccent=word)
So, what am I doing wrong?