Back to Browse

Django Search

21.2K views
Aug 19, 2021
1:31:18

In this Django search tutorial, more specifically, django full text search we look at the django PostgreSQL tools for implementing django full text search for either django templates or django rest framework search. We move through the gears first building a simple search bar in django and then start to look at the options for full text search using PostgreSQL full text search features. In this tutorial we try and introduce you to contains, icontains, search, SearchVector, SearchRank, SearchRank Weights, TrigramSimilarity, TrigramDistance and Headline. Finally we take you through the process of building a GIN index and showcase the potential performance increase. 00:00 Introduction Part 1 - Setup 05:24 Build a simple django search bar app 11:26 Docker compose 21:28 Preparing django fixtures 34:17 Templating Code Repository for the setup app: Select the App-Template https://github.com/veryacademy/YT-django-search-full-text-search-introduction Part 2 - Textual search operators 44:14 contains and icontains Part 3 - The search lookup 49:24 Search Part 4 Search Vector 58:17 Using SearchVector Part 5 Search Ranking 1:00:51 Using SerachRank Part 6 Search Ranking Weights 01:04:43 Ranking weights Part 7 Trigram or Trigraph Concepts 1:08:55 TrigramSimilarity 1:15:44 TrigramDistance Part 8 Headline 1:18:08 Using Search headline Part 9 Database indexes 1:21:03 Creating a GIN index Code Repository: https://github.com/veryacademy/YT-django-search-full-text-search-introduction 🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community. https://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w/join 👍SUBSCRIBE to get more free tutorials, courses and code snippets! http://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w?sub_confirmation=1

Download

1 formats

Video Formats

360pmp4128.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Django Search | NatokHD