These are the pid-as-solr-field occurences I can find.

Towards #1031. I'll add some inline comments.
I think `document` is a solr hash, in which case the `id` method would not be what we want.