Reputation: 3205
Is there to specify a limited table domain for being searched using pg_search ?
I'm thinking about using a number of chained calls to where
on the ActiveRecord model before issuing a pg_search
scoped search.
Upvotes: 1
Views: 361
Reputation: 3205
The latest version has the ability to operate on the results returned by where
or order
etc.
So you can perform a search such as: YourModel.where(id: "some condition").search("query")
Upvotes: 3