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.
诸如Ransack之类的 Gem可以轻松搜索模型,但对于描述或评论等全文字段显然效果不佳,因此我一直在考虑使用pg_search进行所有搜索(不想混合和匹配搜索解决方案(如果可能)针对任何文本字段(名称、描述、评论等)并始终进行全文搜索,因为我可以搜索任何文本字段并获得更好的结果。以这种方式使用全文搜索有什么问题吗?
OK months later when I have actually used full text, I can safely say you use full text when searching through unstructured text, and SQL LIKE for everything else!