I'm trying to implement filter using ElasticSearch I'm simply want to implement range filter I've the following data:

```
    {
  "result": [
    {
      "Id": "144039",
      "posted_dt": 1506951883637,
      "submit_dt": 1507609800000,
      "title": "Request for Information (RFI) # 306-18-0018",
      "fname": "RODRI",
      "email": "",
      "desc": "dummy Text"
    }
  ]
}

```

I want to get data from last 3 or 5 days I'm using this : 

```
query = {
"bool": {
   "must": [
    {   
        "range" : {
            "posted_dt" : {
                "gte" : "now-3d/d",
                "lt" :  "now/d"
            }
        }
    } ]    
}

```

}

My mapping for posted\_dt is : 

```
"posted_dt": {
            "type": "long"
          },

```

I did try the filter as well but didn't succeed.

Please help.

Thanks

Randheer