Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有指定使用 pg_search 搜索的有限表域?
我正在考虑在发布范围搜索where之前在 ActiveRecord 模型上使用多个链式调用。pg_search
where
pg_search
where最新版本可以对ororder等返回的结果进行操作。
order
因此,您可以执行以下搜索:YourModel.where(id: "some condition").search("query")
YourModel.where(id: "some condition").search("query")