(path, query, *args, **kwargs)
return {
        "nested": nested
    }
Creates a nested query for use with nested documents

    Keyword arguments such as score_mode and others can be added.
Creates a nested query for use with nested documents
Creates a nested query for use with nested documents
def nested(path, query, *args, **kwargs):
    """
    Creates a nested query for use with nested documents

    Keyword arguments such as score_mode and others can be added.
    """
    nested = {
        "path": path,
        "query": query
    }
    nested.update(kwargs)
    return {
        "nested": nested
    }
def nested ( path , query , * args , * * kwargs ) : nested = { "path" : path , "query" : query } nested . update ( kwargs ) return { "nested" : nested }