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.
我需要在附件中搜索文本数据。我目前正在使用carrierwave进行附件和搜索搜索。
我正在使用这个功能吗?还是有其他方法可以满足我的要求?
如果您正在寻找一种方法来搜索附件中的数据,例如 pdf、文档等,我建议您将 solr 与 sunspot 和 sunspot-cell gem 结合使用。此博客文章中有关实施的更多详细信息:
http://www.chebyte.com/2011/08/13/how-to-index-file-contents-like-pdf-doc-etc-with-solr-sunspot-paperclip-s3-and-rails-3/