Goals of this patch
Fixing search images disappearing after a certain time passes after a search index is created.
See also https://developer.blender.org/T80115
Before:
After:
What it does
All media URLs in Blender Studio are CloudFront's signed URLs with a fixed expiry time, so when stored in a search index, they are only usable for a fixed amount of time after a ./manage.py index_documents command is called.
There's one exception from the "sign all media URLs" rule, and that is /cache/ path used by thumbnailing system, so using thumbnails instead FileField.url while indexing makes sure that only static media URLs end up in the search index.



