小编san*_*eep的帖子

Elasticsearch没有为[exists]注册的查询

运行以下查询后,我收到异常,因为没有为[exists]注册查询.请帮我.

{
  "query": {
    "function_score": {
      "query": {
        "bool": {
          "must": {
            "match": {
              "_all": {
                "query": "cardio new york"
              }
            }
          }
        }
      },
      "functions": [
        {
          "gauss": {
            "geo_location": {
              "origin": {
                "lat": 40.7127,
                "lon": -74.0059
              },
              "scale": "100km",
              "offset": "0km",
              "decay": 0.9
            }
          }
        },
        {
          "gauss": {
            "startdate": {
              "origin": "now",
              "scale": "30d",
              "offset": "30d"
            }
          },
          "weight": 0.5
        }
      ],
      "filter": {
        "query": {
          "bool": {
            "must": {
              "match": {
                "_all": {
                  "query": "cardio new …
Run Code Online (Sandbox Code Playgroud)

elasticsearch

3
推荐指数
1
解决办法
5513
查看次数

标签 统计

elasticsearch ×1