Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chp 3 search #67

Open
zakari1231 opened this issue Feb 23, 2021 · 1 comment
Open

chp 3 search #67

zakari1231 opened this issue Feb 23, 2021 · 1 comment

Comments

@zakari1231
Copy link

function similarity(character varying, unknown) does not exist
LINE 1: SELECT COUNT(*) FROM (SELECT SIMILARITY("blog_post"."title",...
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
i try the solution in this
https://stackoverflow.com/questions/64712167/error-while-configuring-postgressql-for-django
but it did not work

@zenx
Copy link
Collaborator

zenx commented Apr 11, 2021

You need to install the pg_trgm extension with the following SQL statement:

CREATE EXTENSION pg_trgm;

The solution described in https://stackoverflow.com/questions/64712167/error-while-configuring-postgressql-for-django does that using a Django migration. Make sure to create the migration and to apply it using python manage.py migrate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants