(cls, 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)
Construct a new `Search` instance from a raw dict containing the search
        body. Useful when migrating from raw dictionaries.
Construct a new Search instance from a raw dict containing the search body . Useful when migrating from raw dictionaries .
def from_dict(cls, d):
        """
        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)
        """
        s = cls()
        s.update_from_dict(d)
        return s
def from_dict ( cls , d ) : s = cls ( ) s . update_from_dict ( d ) return s