为什么精确查找,结果集的得分还不一样?
																				{
  "size": 3000,
  "indices_boost": {
    "test-index": 1
  },
  "sort": [
    {
      "_score": {
        "order": "desc"
      }
    }
  ],
  "query": {
    "bool": {
      "should": [
        {
          "term": {
            "cityID": {
              "boost": 4,
              "value": 2108
            }
          }
        },
        {
          "term": {
            "pvcId": {
              "boost": 1,
              "value": 2103
            }
          }
        }
      ]
    }
  }
}
															
	
1 个回复
huhangfei
赞同来自:
cityID=2108的得分一样,
pvcId=2103的得分一样,这样我就可以根据得分排序然后根据时间排序。
最终效果就是:城市下没有数据,得到的就是省份下的数据。
不知道有什么好的方法没?