I assume you are working on the Cell branch?
Is it working (but an older version of sunspot) or not working but up
to date with sunspot?
I can happily report that the cell patch *does* work with files that
are stored on S3. I've got that working in our local development
environment now (files on S3, solr local).
I'm still having trouble transplanting that solution to heroku/websolr
though, which is odd since the cell patched sunspot takes care of
posting the file contents to the solr server. This means websolr
doesn't even know (or care) where the files are stored..
The tinkering continues...
2010/11/3 clyfe <claudius...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "Sunspot" group.
> To post to this group, send email to ruby-s...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-sunspot...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-sunspot?hl=en.
>
>
I can verify that Isaac's cell branch will work "out-of-the-box" with
Heroku and Websolr. The last part of the puzzle was updating the
schema at Websolr with the one provided with the cell branch (i'm a
solr noob, so this wasn't obvious to me).
Just make sure you pass the (authorized) URL to the file on s3 to the
attachment keyword in your searchable declaration:
searchable do
attachment :attached_file
end
def attached_file
.. insert code that generates an (authorized) URL to your file in
string format here.
end
Sometimes letting something rest for a week or so works wonders!
2010/11/3 clyfe <claudius...@gmail.com>: