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
Should I make a video like this, but for PostgreSQL? Let me know in the replies.
yes please!
@@hikeroutpost Love you bro !!!🤩
Please make with nestjs and posgressql thanks
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
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
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
@@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.
You are Fantastic man , Thank you so much for this video ❤️
No probs man, thanks for the idea.
Hello. Users usually type couple of characters to get the auto complete: "merc" - > "Mercedes". How to implement that? I think its more useful thing.
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.
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.
do you have any idea about multilingual elasticsearch django along with voice search
Nice Su-35 in the background
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
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.
how can I host this from domain and hosting company such as go daddy or dreamhost?
very good video and the way you present your videos are very entertaining, thank you for the content
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!
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
2k is crossed, congrats
Rly? Haven't noticed. Thanks for the support :)
Fantastic tutorial!
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
You're welcome, and thanks so much for the Patreon support! Wishing you the best of luck with whatever you are working on :D
that was amazing! awesome tutorial
Can we see your mappings?
Please elabourate on what you mean by "mappings"
That damn mig in the background
That's a Su-27 :)
Yooooo ahnaf remember me
I think i do :D
if i want show year with name how ?
@DevGuyAhnaf
Add that field to the query. Or in the dataset, include the year when you load it into elasticsearch
how can i support arabic search @@devguyahnaf