Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持搜索时根据字段计算分数进行排序 #36

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

CodFrm
Copy link
Contributor

@CodFrm CodFrm commented Jun 16, 2022

查询时支持一个分数表达式,根据自定义的参数计算出文档分数再进行排序

curl -H "Content-Type:application/json" -X POST --data '{"query":"深圳北站","page":1,"limit":10,"order":"desc","scoreExp":"score+[document.hot]*10"}' http://127.0.0.1:5678/api/query

@newpanjing newpanjing merged commit 7bf0787 into sea-team:main Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants