Paginating nested documents


#1

I have a person document that has many nested address documents.

If I have, say 10 persons, each with 5 addresses the total documents is 50, right?

Is it possible to make the hits.total always be the person count (or some alternative)? I want to be able to paginate queries by persons (I've got tens of thousands of persons/addresses) and getting the raw document count is not very helpful.


(system) #2