How to Use Django & PostgreSQL for Full Text Search

The basic idea of a full-text search in PostgreSQL is that you create an index using a document, which contains the words you would like to use for search. For storing search data in PostgreSQL, new data type has been added — tsvector. Tsvector is a storage for the tokens from a document.

When you need a full-text search, and you do not want to connect third-party libraries to the project, you can easily manage database resources using a full-text search in PostgreSQL and the api, which provides Django for work with the search.

Full story:

Show your support

Clapping shows how much you appreciated Vladimir Sidorenko’s story.