Комментарии:
use plainto_tsquery instead of to_tsquery, because to_tsquery does not escape the sql letters like ', \, !, so the query can be easily injected
Ответитьif we need to use search on 2 tables then how to build an index in this case.
pls help <3
very helpful, thanks!
ОтветитьOMG when you brought up TypeORM it was like a surprise celebrity showing up. SO COOL! I feel like this made just me. Was trying to also figure ElasticSearch for our TypeORM/Postgres setup. This is perfect!
ОтветитьRight to the point with great examples. Thanks!
ОтветитьPostgres Generated columns would be really useful for generating search documents as changes are made. Its also a bit simpler than triggers.
ОтветитьGreat explanation.. saved a lot of time that I wasted searching over the internet.
Ответитьi was just looking up this topic, clicked on the video and half way though realised its from ben
Ответитьvery usefull, thank you.
ОтветитьHow do you add these indexes automatically on insert or update?
Ответитьtrigrams
ОтветитьYou're doing great. Keep going! Thank you very much
ОтветитьEXCELLENT LESSON, PERFECT, SUBLIME, THANKS THANKS BEN AWAD!!!! A HUUUUUUUUUUUUUUUUGE THANKS!!!!! :D
ОтветитьMySQL vs PSQL please
ОтветитьI noticed that using tvector make search 2 times slower comparing to "and (like '%abc%' or like '%bcd%'), on top of this tvector performance is not stable, sometimes its say 6 seconds, sometimes 11 seconds to get the response
ОтветитьA little late, but does anyone know how can i implement something like the initial example, that searches a bunch of keywords? The behavior I want is to get every result that matches at least one of the keywords, but ordered by number of matches (and if possible, still considering the given weights for the fields, as a match in the title is still more valuable than a match in the description)
ОтветитьYou are the man.
ОтветитьI like how you followed start simple finish master approach. Thank you for your awesome contents once again!
Ответить