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 を使用し、検索には ransack を使用しています。
この機能は、私が使用しているもので利用できますか? または、私の要件を満たす別の方法はありますか?
PDF、ドキュメントなどの添付ファイル内のデータを検索する方法を探している場合は、sunspot および sunspot-cell gem と組み合わせて solr を使用することをお勧めします。実装の詳細については、次のブログ投稿をご覧ください。
http://www.chebyte.com/2011/08/13/how-to-index-file-contents-like-pdf-doc-etc-with-solr-sunspot-paperclip-s3-and-rails-3/