diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-05-31 22:45:03 +0100 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2016-04-22 10:44:37 +0100 |
commit | 2d877da85526bad0dad7fd6b1d56b1f924c0116a (patch) | |
tree | cfb530183be389e928351aa25f3fb5a03f59a1af /django/db/backends/postgresql/operations.py | |
parent | f4c2b8e04a297f627a8e722d78eda6cbf5cc8a6e (diff) | |
download | django-2d877da85526bad0dad7fd6b1d56b1f924c0116a.tar.gz |
Refs #3254 -- Added full text search to contrib.postgres.
Adds a reasonably feature complete implementation of full text search
using the built in PostgreSQL engine. It uses public APIs from
Expression and Lookup.
With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel
and many others for their advice and review. Particular thanks also go
to the supporters of the contrib.postgres kickstarter.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r-- | django/db/backends/postgresql/operations.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index f0715a24e3..9b64615001 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -254,3 +254,9 @@ class DatabaseOperations(BaseDatabaseOperations): rhs_sql, rhs_params = rhs return "age(%s, %s)" % (lhs_sql, rhs_sql), lhs_params + rhs_params return super(DatabaseOperations, self).subtract_temporals(internal_type, lhs, rhs) + + def fulltext_search_sql(self, field_name): + raise NotImplementedError( + "Add 'django.contrib.postgres' to settings.INSTALLED_APPS to use " + "the search operator." + ) |