简体   繁体   English

ElasticSearch 动态脚本 - Groovy

[英]ElasticSearch dynamic scripting - Groovy

ElasticSearch 动态脚本是仅适用于匹配 should 查询的结果还是所有文档都被解析以应用更新的 _score?

Looks like the function_score wasn't boosting/burying docs since they weren't included in the query.看起来 function_score 没有提升/埋葬文档,因为它们没有包含在查询中。 To get around this I added "should" queries whenever I was boosting docs that might not exist (for example: boosting a taxonomy whenever a keyword was used)为了解决这个问题,我在提升可能不存在的文档时添加了“应该”查询(例如:每当使用关键字时提升分类法)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM