Hi there! I've been asked to explain some limitations that could have the operators (~, ~*, LIKE) when doing Full text limitation.
I've seen some things but nothing really relevant.
Could someone point out 2 or 3 limitations they have faced when using this operators for text search in PostgreSQL?
Many thanks!!
LIKEdoesn't allow for handy things that POSIX regex has such as non-capturing groups, start/end string anchors^or$, and more.LIKEmisses on a lot of the finer regex control that~and~*offer. Additionally, regardless of usingLIKEor the POSIX operators, if you start your comparison string with a wildcard (%or.*for example), it ignores indexes on the field being matched. Check out this documentation: postgresql.org/docs/14/functions-matching.html