I haven't worked out exactly how Solr creates it's search indices, but it does essentially what I was talking about—pulling out parts of the object to index for search with a reference to the original object. We might actually be all right without encrypting the ids, because the indices are used in Solr, not our own database. But I'll continue to research this.