[英]Full text search for Ruby on Rails app using Postgres and pg_search gem
[英]Limit domaing before full text search using pg_search in ruby on rails
是否指定使用pg_search進行搜索的有限表域?
我正在考慮在發出pg_search
范圍搜索之前對ActiveRecord模型上的where
使用多個鏈式調用。
最新版本能夠根據where
或order
等返回的結果進行操作。
所以你可以執行搜索,例如:
YourModel.where(id: "some condition").search("query")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.