There is a lengthy/detailed explanation about foundsets in the developer reference guide, my guess is this will help you.