Open ghost opened 4 years ago
I created the query for ts_headline
manually:
Thanks, I got this to work, but in the end had to go away from Postgres FTS since it can't do suffix searches for german compound words a la "*:wald" without significant work to be put into custom dictionaries and even then its not "feature complete" since the dictionary might miss words.
If you want to do suffix search: insert the text reversed and then do a prefix search.
Yes, but as far as I understand this does not work with "Donaudampfschiffahrtsgesellschaftskapitän" :D
I see. ;)
It would be awesome to have ts_headline support in sqlalchemy-searchable, see https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-HEADLINE