Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
http://www.casebook.net
MIT License
1.31k stars 369 forks source link

Is it possible to use `any_word` with `associated_against` #465

Closed rockwellll closed 3 years ago

rockwellll commented 3 years ago

Hey,

I have this case where i filter through nested associations.

Is it possible to do this


  pg_search_scope :where_participant_name_is, associated_against: {
    contacts: :full_name,
    lists: :name,
  }, using: {
    tsearch: {any_word: true}
  }

Because as i am testing it, it doesn't seem to be working, and the docs didn't mention this