Query rewriting/ts_rewrite in pg_search

9 views
Skip to first unread message

kevinku...@gmail.com

unread,
Jan 22, 2019, 10:30:47 PM1/22/19
to Case Commons Development
Hi,

Does the pg_search gem support query rewriting? Is there a way to use ts_rewrite?
It's documented here: https://www.postgresql.org/docs/10/textsearch-features.html#TEXTSEARCH-QUERY-REWRITING

It would be great if I could use the ts_rewrite function to further improve my queries.

Thanks!

Grant Hutchins

unread,
Jan 26, 2019, 11:48:43 AM1/26/19
to casecom...@googlegroups.com
No, pg_search doesn’t currently do anything with ts_rewrite: https://github.com/Casecommons/pg_search/search?q=ts_rewrite&unscoped_q=ts_rewrite

If someone thinks of a way to integrate ts_rewrite, I would consider a pull request. I don’t have any plans to add anything myself.

Grant Hutchins

--

---
You received this message because you are subscribed to the Google Groups "Case Commons Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to casecommons-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages