Skip to content

请问是否有先精确匹配,再模糊匹配的查询方法或者参数 #115

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

Open
infooer opened this issue Sep 25, 2020 · 0 comments
Open

Comments

@infooer
Copy link

infooer commented Sep 25, 2020

我是想按照时间排序,但是希望把精准匹配的结果放在前面,如果是设置relevance=true的话,就没法时间排序了,而且这样搜索结果排名靠前的很多都是关键词堆砌的结果。
比如我搜索:杭州西湖,出来的结果先是同时包含杭州和西湖的内容,按照时间进行排序;再下面的结果就是包含杭州或者包含西湖的内容,同样是按照时间排序。
不知道这种需求是否有现成的方法,还是需要重新实现呢

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

No branches or pull requests

1 participant