def yieldRelationTokenChains(query, relData, maxDepth, checkFilter,
    checkTargetFilter, getQueries, findCycles=True):
    """a search workhorse for searches that use a query factory

        TODO: explain. :-/"""
