[Django]-Full text search using postgresql-8.4 and django

4👍

You can try

Entry.objects.filter(headline__contains="search text")

or __icontains for case-insensitive search.

As the django doc says __search only works with MySQL for now.

👤Rohan

2👍

👤Psion

0👍

For user reading this question these days:

PostgreSQL Full-Text-Search support is present since Django 1.10 (2016) by the module django.contrib.postgres.search .

Leave a comment