1. GET /forum/_search
    2. {
    3. "query": {
    4. "multi_match": {
    5. "query": "java solution",
    6. "type": "best_fields",
    7. "fields": [ "title^2", "content" ],
    8. "tie_breaker": 0.3,
    9. "minimum_should_match": "50%"
    10. }
    11. }
    12. }
    GET /forum/_search
    {
      "query": {
        "dis_max": {
          "queries":  [
            {
              "match": {
                "title": {
                  "query": "java beginner",
                  "minimum_should_match": "50%",
                  "boost": 2
                }
              }
            },
            {
              "match": {
                "content": {
                  "query": "java beginner",
                  "minimum_should_match": "30%"
                }
              }
            }
          ],
          "tie_breaker": 0.3
        }
      } 
    }
    

    minimum_should_match,主要是用来干嘛的?
    去长尾,long tail
    长尾,比如你搜索5个关键词,但是很多结果是只匹配1个关键词的,其实跟你想要的结果相差甚远,这些结果就是长尾
    minimum_should_match,控制搜索结果的精准度,只有匹配一定数量的关键词的数据,才能返回