Hi Eric,
I read in the documentation that the :~ operator can be used to use regex for term matching. However, it's not really clear to me how it works ;)
In my examples, column "searchable" is of type `fulltext`:
db=# SELECT count(*) FROM files WHERE zdb('files', files.ctid) ==> 'searchable:"test"';
count
-------
1740
Some matches
db=# SELECT count(*) FROM files WHERE zdb('files', files.ctid) ==> 'searchable:~t[a-z]st';
count
-------
0
No matches. Trying my luck with escaping:
db=# SELECT count(*) FROM files WHERE zdb('files', files.ctid) ==> 'searchable:~t\\[a-z\\]st';
count
-------
0
I'm not a regex expert, but I think that should match something (?). Would you be so kind to give an example on how to use the :~ operator?
Thanks,
Sander