你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
liubin
赞同来自: dongxiao
森 - Elasticsearch,php
Script Based Sortingedit Allow to sort based on custom scripts, here is an example: GET /_search { "query" : { "term" : { "user" : "kimchy" } }, "sort" : { "_script" : { "type" : "number", "script" : { "lang": "painless", "source": "doc['field_name'].value * params.factor", "params" : { "factor" : 1.1 } }, "order" : "asc" } } }
要回复问题请先登录或注册
2 个回复
liubin
赞同来自: dongxiao
field_value_factor
https://www.elastic.co/guide/e ... actor
森 - Elasticsearch,php
赞同来自: dongxiao
文档