How to sort results based on term position in elasticsearch >= 5.5?

删除回忆录丶 提交于 2019-12-10 21:55:05

问题


Since _index is no longer available in Painless scripting, hence solutions which used to work via accessing term-offset from _index in script_score do not work any more such as one advised here: Scoring by term position in ElasticSearch?.

What's the preferred way to do this now?

Thanks much for your help!

来源:https://stackoverflow.com/questions/49304331/how-to-sort-results-based-on-term-position-in-elasticsearch-5-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!