pg_search
pg_search copied to clipboard
Support for augmenting with websearch_to_tsquery()
As seen here: https://www.postgresql.org/docs/11/functions-textsearch.html
I would assume this happens at the call level:
class Post < ApplicationRecord
pg_search_scope :search_by_title, against: :title
end
Post.search_by_title("word|word")
Post.search_by_title.websearch("word or word")
I released a library based on pg_search supporting websearch queries. If your search usecase is simple enough, it might be a possible option.
I'm interested in this functionality as well. I'll like to get feedback from the core maintainers: how much work do you think would adding this feature require? I would like to get a sense of if I could dig in and contribute it, or if it's more of a massive effort. I have no prior knowledge of the pg_search codebase.
+1 on this, though I'd add that I'd find it most useful if I could do a multisearch that uses Postgres' websearch.
+1 on this ... is there a chance you could use something similar to Elixir ecto's fragments for it?
It would be great to have this feature.