Ruby on Rails #150 Global Search

about 1 month ago
search sql

Global search allows you to search multiple attributes of multiple models in a single search form.

For example, on when you perform a search in the navbar you get results for Posts, Tags, Playlists.

We will build a scalable global search, so that you can easily add new models and attributes to search on.

This video topic was suggested by @Elgnonvis . Want me to do a video about a topic? Add your ideas in the ocmments.

Episode source code:
Based on this blogpost:

0:00 Global Search examples
2:02 Basic global search
11:02 Advanced global search
23:30 Final demo

Sign in to join the conversation

Please make a video for ignoring diacritics in search. Thank you!

m7marius7 m7marius7 9 days ago