Creating a search catalog in PostgreSQL using full text indexing

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Creating a full text index in PostgreSQL is an extremely powerful way to add a full-featured, comprehensive search function to your application. Full text indexing is probably the most under-appreciated feature of PostgreSQL, but it's there and you can take advantage of it!
    The code and data is here: bigmachine.io/2022/06/12/crea...
    Postgres resources: bigmachine.io/products/a-curi...
  • НаукаНаука

Комментарии • 39

  • @carta-viva
    @carta-viva 21 день назад

    Oh Lord, I'd to work with Postgres again u.u, but whait, how cool is that? It's awesomeness cool! Thanks for sharing this Mr Rob!

  • @pramodjingade6581
    @pramodjingade6581 4 месяца назад +2

    I learnt all that I needed for search in just 14 mins, thanks to this video. 💯 to keep it simple & easily understandable!! 👍

  • @Misa7531
    @Misa7531 4 месяца назад

    That was amazing, I didn't even realize that something like this is possible this video definitely goes to "bookmarks" for future reference , thank you very much.

  • @olebogengmauco1297
    @olebogengmauco1297 17 дней назад

    Thank You for show us the light. I've subscribed, instead of making me a borito, want to come to your house and make you a borito 😁🙏

  • @SpecialK845
    @SpecialK845 Год назад

    This has changed my life. Thanks for the video!

  • @naufalamiruddin5798
    @naufalamiruddin5798 Год назад +1

    Great tutorial! very clear and detailed explanations. You deserve more subscriber sir.

  • @zed9zed
    @zed9zed Год назад

    Amazing video. You really pack a lot in, but with adequate explanations (and some humor that thankfully does not get in the way). I may have to watch this 5 times to get it all, but that's better than having to watch a video on fast forward and 10sec jumping frequently to skip over fluff.

  • @bricef0918
    @bricef0918 Год назад

    Awesome tutorial! Very well explained. Thank you!

  • @oubayryuuk
    @oubayryuuk Год назад

    im loving these vids, pls keep on making them

  • @llgmusic
    @llgmusic Год назад

    Thanks for this tutorial, it's very helpful and comprehensive! IT gives me some arguments to use Postgres as a database

  • @Koshick
    @Koshick Год назад

    Wow this is really awesome tutorial. Thanks for your detailed instructions.

  • @lucianostegun
    @lucianostegun Год назад

    Awesome video! Learned a lot!!!

  • @pedestrian9287
    @pedestrian9287 Год назад

    Terrrrrific video!! Exactly what I needed!

  • @ralphlewis3563
    @ralphlewis3563 Год назад

    I Love this. Awesome and to point

  • @silasselfe5308
    @silasselfe5308 Год назад

    you've earned my subscription.

  • @carloscampos7709
    @carloscampos7709 Год назад

    Great video. Thanks!

  • @ndevadas
    @ndevadas 2 месяца назад

    Thank you

  • @billy_azzztec
    @billy_azzztec Год назад

    Thank you!

  • @blameItleaveit
    @blameItleaveit Год назад

    awesome video

  • @kasvith
    @kasvith Год назад

    Subbed immediately

  • @TheProtein83
    @TheProtein83 Год назад

    Terrific info! I am curious to know how this setup compares with elastic search for full text search?

  • @Septumsempra8818
    @Septumsempra8818 6 месяцев назад

    Top Video!!!
    How do we do this for ecommerce? So product names, cats etc, and also sortings on price, and lastly pagination.
    🇿🇦

  • @microtech2448
    @microtech2448 Год назад

    Great video! Nice way of explanation. One thing, can it handle fuzziness too?

    • @big-machine
      @big-machine  Год назад +1

      See the comment below RE fuzziness from @Rocco - fuzzy queries and text queries are different beasts. If you want fuzziness, use the ~* operator (regex) but be mindful of destroying your indexes!

  • @soumenkhara5456
    @soumenkhara5456 Год назад

    This video is awesome. Can you explain same thing in multiple releted table?

    • @big-machine
      @big-machine  Год назад

      I would say to denormalize and have a dedicated search table that gets updated automatically, or via code.

  • @dasR0ckt
    @dasR0ckt Год назад

    Hi, I tried to take a look at the data you mentioned in the video and play around a bit, I cant find it behind the link in the description though. Am I being thick and overlooking something? Thanks for the video, I never knew about full text search.

    • @big-machine
      @big-machine  Год назад +1

      Whoops - looks like I left the link out! I added it back if you're still up for trying things out: bigmachine.io/2022/06/12/creating-a-full-text-search-engine-in-postgresql-2022/

    • @dasR0ckt
      @dasR0ckt Год назад

      @@big-machine Thanks, thats awesome :) I found a (german) quote database in the meantime too, lets see if the things I did with that work out just as well with yours :)

  • @billy_azzztec
    @billy_azzztec Год назад

    I've already added it to my database and everything else works as expected! This is awesome, but can I make it a little more fuzzy? For example, if I search for the name "Jessica West" both "Jessica" and "West" will return the whole string, but "Jessic" or "Wes" do not.

    • @big-machine
      @big-machine  Год назад +1

      Fuzzy search is a lot different than full text - I suppose think of searching Google for "Jessic" - what would you expect to find? I *do* think there are some ways to do intelligent fuzzy searching - but if that's what you need than a regex is your best bet (~* 'Jessic'), even if it scales horribly.

    • @billy_azzztec
      @billy_azzztec Год назад

      @@big-machine Ok gotcha. Thank you!

  • @deer7183
    @deer7183 Год назад

    how can you add synonyms like if someone searches 'bag' it should also show 'backpack' results?

    • @big-machine
      @big-machine  Год назад

      You would probably need to do this yourself using code - but even then you're skewing the context. Backpack is a verb and a noun and is it really a bag? I know you're just giving an example - but these are the kinds of things you need to think through in terms of lexxing,

  • @Justinallenmarsh
    @Justinallenmarsh 5 месяцев назад

    Is this search fuzzy?

  • @1337shadow
    @1337shadow Год назад

    M waiting for my borito

  • @MatteoPresot
    @MatteoPresot Год назад

    really no words other than thank you!!

  • @doridore1234
    @doridore1234 Год назад

    i better get that fuckin burrito.

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 10 месяцев назад +1

    I am overwhelmed. Not the best at SQL at all. How'd you learn all this? If you could give a roadmap on learning Postgresql features like this from scratch it would be great if you could share. Time to watch this video 20 times until I get it.