(field, gt=None, gte=None, lt=None, lte=None)
return {"range": {field: {
        k: v for k, v in {'gt': gt, 'gte': gte, 'lt': lt, 'lte': lte}.items()
        if v is not None
    }}}
Filter ``field`` by a range.  Pass in some sensible combination of ``gt``
    (greater than), ``gte`` (greater than or equal to), ``lt``, and ``lte``.
Filter ``field`` by a range.  Pass in some sensible combination of ``gt``
    (greater than), ``gte`` (greater than or equal to), ``lt``, and ``lte``.
Filter field by a range . Pass in some sensible combination of gt ( greater than ) gte ( greater than or equal to ) lt and lte .
def range_filter(field, gt=None, gte=None, lt=None, lte=None):
    """
    Filter ``field`` by a range.  Pass in some sensible combination of ``gt``
    (greater than), ``gte`` (greater than or equal to), ``lt``, and ``lte``.
    """
    return {"range": {field: {
        k: v for k, v in {'gt': gt, 'gte': gte, 'lt': lt, 'lte': lte}.items()
        if v is not None
    }}}
def range_filter ( field , gt = None , gte = None , lt = None , lte = None ) : return { "range" : { field : { k : v for k , v in { 'gt' : gt , 'gte' : gte , 'lt' : lt , 'lte' : lte } . items ( ) if v is not None } } }