【ElasticSearch】查绚使用学习

【ElasticSearch】查绚使用学习

=============================================================

multi_match 多字段匹配

=============================================================

multi_match 多字段匹配

multi_match 查询可以在多个字段上执行相同的 match 查询

{
    "query": {
        "bool": {
            "must": [
                {
                    "multi_match": {
                        "fields": [
                            "id",
                            "position"
                        ],
                        "query": "100000"
                    }
                }
            ],
            "must_not": [
                
            ],
            "should": [
                
            ]
        }
    },
    "from": 0,
    "size": 10,
    "sort": [
        
    ],
    "aggs": {
        
    }
}

相关推荐