@classmethod
def from_dict(cls, d):
    '\n        Construct a new `Search` instance from a raw dict containing the search\n        body. Useful when migrating from raw dictionaries.\n\n        Example::\n\n            s = Search.from_dict({\n                "query": {\n                    "bool": {\n                        "must": [...]\n                    }\n                },\n                "aggs": {...}\n            })\n            s = s.filter(\'term\', published=True)\n        '
    s = cls()
    s.update_from_dict(d)
    return s
Construct a new `Search` instance from a raw dict containing the search
body. Useful when migrating from raw dictionaries.

Example::

    s = Search.from_dict({
        "query": {
            "bool": {
                "must": [...]
            }
        },
        "aggs": {...}
    })
    s = s.filter('term', published=True)
@classmethod
def from_dict(cls, d):
    '\n        Construct a new `Search` instance from a raw dict containing the search\n        body. Useful when migrating from raw dictionaries.\n\n        Example::\n\n            s = Search.from_dict({\n                "query": {\n                    "bool": {\n                        "must": [...]\n                    }\n                },\n                "aggs": {...}\n            })\n            s = s.filter(\'term\', published=True)\n        '
    s = cls()
    s.update_from_dict(d)
    return s