def METHOD_NAME(path, field):
    """Create a nested filter.
    :param path:  Path to nested object.
    :param field: Field name.
    :returns: Function that returns Nested query.
    """
    def inner(values):
        return Q('nested',
                 path=path,
                 ignore_unmapped=True,
                 query=Q('terms', **{field: values}))
    return inner