Skip to content

SearchFilter gives error in Full-text search using ('@') even when using Django and PostgreSQL #8202

@kushshiv

Description

@kushshiv

Issue :

SearchFilter gives error in Full-text search using ('@').

Documentation :

Documentation link

The search behavior may be restricted by prepending various characters to the search_fields.

'^' Starts-with search.
'=' Exact matches.
'@' Full-text search. (Currently only supported Django's PostgreSQL backend.)
'$' Regex search.

Error:

FieldError("Unsupported lookup 'search' for CharField or join on the field not permitted.")

Using (Django 3.2.4) and (PostgreSQL - 13.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions