I followed the docs and it's almost work well but when I use Full-text Search i got an error:
Unsupported lookup 'search' for CharField or join on the field not permitted
How can I fix it?
I followed the docs and it's almost work well but when I use Full-text Search i got an error:
Unsupported lookup 'search' for CharField or join on the field not permitted
How can I fix it?
As reported in the DRF Search Filter documentations:
"The SearchFilter class supports simple single query parameter based searching, and is based on the Django admin's search functionality."
So if you want to implement a complete Full-text Search with Django and PostgreSQL you can read the official documentation about the full-text search.
If you are interested about external article about that here it's one I wrote: Full-Text Search in Django with PostgreSQL
SearchFilter
? I cant seem to find the right one. I've tried using Gin index but upon manually querying the one being used by SearchFilter
it is still being retrieved via Sequential Scan. Any ideas on this? –
Sandysandye © 2022 - 2024 — McMap. All rights reserved.