{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "timestamp": {
              "value": %d
            }
          }
        }
        %s
      ]
    }
  },
  "sort":[%s]
}