Full-Text Search with Auto Complete - Python Flask & ElasticSearch

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • In this video, I show you how to implement Full-Text Search with auto suggestion/completion using Flask (Python) and ElasticSearch. This video also uses Vanilla JS with JQuery in the frontend so that the implementation is framework agnostic.
    😀 SUBSCRIBE for more videos! / ahnafzamil
    ➤ My Website: ahnafzamil.com
    ➤ My Discord Server: / discord
    ➤ My Twitter: / @devguyahnaf
    ➤ Support me on Patreon: / ahnafzamil
    Links
    ====
    Code: github.com/ahn...
    Dataset: www.kaggle.com...
    ElasticSearch: www.elastic.co/
    Software Used
    ============
    Recording: OBS Studio
    Thumbnail: Photopea (Web)
    Editing: Shotcut
    Hope you enjoy this video, I am open to feedback.
    i use arch btw

ความคิดเห็น • 37

  • @devguyahnaf
    @devguyahnaf  2 ปีที่แล้ว +13

    Should I make a video like this, but for PostgreSQL? Let me know in the replies.

  • @ICOReviewtoken
    @ICOReviewtoken ปีที่แล้ว +1

    Please make with nestjs and posgressql thanks

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว

      I don't use Nest.JS, but I will make a PostgreSQL one with raw SQL commands. You could use the same commands in any language/framework

  • @NewsSphereNetwork
    @NewsSphereNetwork ปีที่แล้ว +1

    Hi, thanks that was helpful, I use arch too btw,
    I like your window manager, is it qtile? I use i3wm for a while now, I am good with it, but please if you can send me your wm config file and tell me what to install I will appreciate that

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      The WM I use in the video is DWM with Polybar. It isn't my current WM, but I'll share the link: github.com/ahnaf-zamil/dwm-ipc
      My current WM is a modified version of DWM called ChadWM. It isn't in the video, but I'll share this one too: github.com/ahnaf-zamil/chadwm
      Here are my config files (a bit old): gitlab.com/ahnaf-zamil/dotfiles

    • @NewsSphereNetwork
      @NewsSphereNetwork ปีที่แล้ว

      @@devguyahnaf thank you so much,
      I just moved to VoidLinux two days ago, and looking for a nwe wm too, DWM is a great choice of course.

  • @bharathkarkera3223
    @bharathkarkera3223 2 ปีที่แล้ว +2

    You are Fantastic man , Thank you so much for this video ❤️

    • @devguyahnaf
      @devguyahnaf  2 ปีที่แล้ว

      No probs man, thanks for the idea.

  • @nightrocks
    @nightrocks ปีที่แล้ว

    Hello. Users usually type couple of characters to get the auto complete: "merc" - > "Mercedes". How to implement that? I think its more useful thing.

  • @pkdomo
    @pkdomo ปีที่แล้ว

    Awesome video. Indeed you are pro man. I have a question. If I have a longtext column containing multiple paragraphs separated by line breaks & if I would like to print all these paragraphs with matching pattern in separate rows. is it possible? I tried to use split > explode like spark sql, it did not work.

  • @samrockseagle
    @samrockseagle 9 หลายเดือนก่อน

    Man you are awesome. Just started using the elasticsearch today for a pet project and this is the first thing I tried and thanks to your query it worked straight. Also realized that why auto complete like feature is a complicated beast.

  • @SUNILPATEL-oc9vs
    @SUNILPATEL-oc9vs ปีที่แล้ว

    do you have any idea about multilingual elasticsearch django along with voice search

  • @mianm.husnainakram2949
    @mianm.husnainakram2949 6 หลายเดือนก่อน

    Nice Su-35 in the background

  • @darkwarriorsgame
    @darkwarriorsgame 10 หลายเดือนก่อน

    Thanks for the video man.
    Just a couple of questions, is it possible to still use elastic search or use open search instead for the open source licenses
    Also a tutorial on your setup, for example debugger set up, your environment setup, linter or black formatter setup would be really useful.
    Thankss

    • @devguyahnaf
      @devguyahnaf  10 หลายเดือนก่อน +1

      Elastic Search is better than Open Search in terms of speed and query aggregation, so I wouldn't recommend using the latter. Plus, the licenses aren't too bad.
      In regards to my setup, I use AstroNvim with Neovim. Linter and formatter are Flake8 and black respectively along with their plugins for Nvim. Debugger, it's print statements.

  • @franciscomartell6938
    @franciscomartell6938 ปีที่แล้ว

    how can I host this from domain and hosting company such as go daddy or dreamhost?

  • @docksfps
    @docksfps 2 ปีที่แล้ว

    very good video and the way you present your videos are very entertaining, thank you for the content

  • @petsoukos
    @petsoukos ปีที่แล้ว

    This is a good example for basic auto-suggest like feature. However, if you dig deeper into mappings and specific field types for this concept you can upgrade your work further!

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      Yep. I'm very new to Elastic Search and the only reason I touched it was due of a viewer request, which is why I haven't much experience in it.
      But I will dive deeper into it and see if I can learn new things about it :D

  • @Rajeshgandh
    @Rajeshgandh ปีที่แล้ว +1

    2k is crossed, congrats

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      Rly? Haven't noticed. Thanks for the support :)

  • @Stephane_
    @Stephane_ 7 หลายเดือนก่อน

    Fantastic tutorial!

  • @bigbooduh
    @bigbooduh ปีที่แล้ว

    Hats off to you, You earned a patron supporter :) Iv seen a lot tutorials on elastic search that just screwed my brain, hands down this was the best. It actually got me playing with the code and elastic search. I modified the loader to import a yaml dataset file and tweaked with the query of the flask app. Thanks for his dude

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว +1

      You're welcome, and thanks so much for the Patreon support! Wishing you the best of luck with whatever you are working on :D

  • @pscoriae6981
    @pscoriae6981 ปีที่แล้ว

    that was amazing! awesome tutorial

  • @danieledfeldt6440
    @danieledfeldt6440 ปีที่แล้ว

    Can we see your mappings?

    • @devguyahnaf
      @devguyahnaf  ปีที่แล้ว

      Please elabourate on what you mean by "mappings"

  • @nurzahanmukta220
    @nurzahanmukta220 2 ปีที่แล้ว

    That damn mig in the background

  • @inferlight
    @inferlight 2 ปีที่แล้ว

    Yooooo ahnaf remember me

  • @maxsmart3089
    @maxsmart3089 11 หลายเดือนก่อน

    if i want show year with name how ?
    @DevGuyAhnaf

    • @devguyahnaf
      @devguyahnaf  11 หลายเดือนก่อน

      Add that field to the query. Or in the dataset, include the year when you load it into elasticsearch

    • @maxsmart3089
      @maxsmart3089 11 หลายเดือนก่อน

      how can i support arabic search @@devguyahnaf