def getResults(name, query, maxDepth, filter, queryFactory):
    """return results for search if available, and None if not

        Returning a non-None value means that this search index claims the
        search.  No other search indexes will be consulted, and the given
        results are believed to be accurate.
        """
