1

是否有指定使用 pg_search 搜索的有限表域?

我正在考虑在发布范围搜索where之前在 ActiveRecord 模型上使用多个链式调用。pg_search

4

1 回答 1

3

where最新版本可以对ororder等返回的结果进行操作。

因此,您可以执行以下搜索:
YourModel.where(id: "some condition").search("query")

于 2012-09-03T13:48:02.950 回答