搜索的形式随机获取数据

{
  "query": {
    "bool": {
      "must": [{
        "term": {
          "game_id": 132
        }
      }]
    }
  },
  "from": 1,
  "size": 100,
  "sort": {
    "_script": {
      "script": "Math.random()",
      "type": "number",
      "order": "asc"
    }
  }
}