質問

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.

役に立ちましたか?

解決

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")

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top