## constant_score 的使用
> 不計算相關度評分 must/filter/shoud/must\_not 等的子條件是通過 term/terms/range/ids/exists/match 等葉子條件為參數的
需要傳兩個參數
* filter 你希望執行的Filter查詢,每一個返回的文檔都必須匹配這個查詢,Filter查詢不會計算相關度分數,為了提高性能,Elasticsearch會自動緩存經常使用的Filter查詢。
* 一個Float類型的數,用于指定匹配成功的文檔的相關度分數。默認值為1.0。
```
GET /user_search
{
"query": {
"bool": {
"should": [
{
"bool": {
"filter": {
"term": {
"address.keyword": "河北省"
}
}
}
}
]
}
}
}
```