Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for ts_headline #92

Open
ghost opened this issue Apr 27, 2020 · 5 comments
Open

support for ts_headline #92

ghost opened this issue Apr 27, 2020 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 27, 2020

It would be awesome to have ts_headline support in sqlalchemy-searchable, see https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-HEADLINE

@jfilter
Copy link

jfilter commented Jul 2, 2020

@sebastianelsner
Copy link

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.

@jfilter
Copy link

jfilter commented Nov 24, 2020

If you want to do suffix search: insert the text reversed and then do a prefix search.

@sebastianelsner
Copy link

Yes, but as far as I understand this does not work with "Donaudampfschiffahrtsgesellschaftskapitän" :D

@jfilter
Copy link

jfilter commented Nov 24, 2020

I see. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants