🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# Boosting Query **boosting** 查询可以用来有效地降级能匹配给定查询的结果。 与 **bool** 查询中的“**NOT**”子句不同,这仍然会选择包含非预期条款的文档,但会降低其总分。 | `GET /_search` `{` `"query"``: {` `"boosting"` `: {` `"positive"` `: {` `"term"` `: {` `"field1"` `: ``"value1"` `}` `},` `"negative"` `: {` `"term"` `: {` `"field2"` `: ``"value2"` `}` `},` `"negative_boost"` `: ``0.2` `}` `}` `}` |