Seems like I can get what I want by using
Code:
db.search('identifiers:wxyz:1234-1')
which gives me a set containing the book's id. I'll go with this solution unless someone comes up with a better one, but I still wonder if the cache is buggy when it comes to identifiers.