Solr删除排名或修改排名功能 [英] Solr remove ranking or modify ranking feature

查看:91
本文介绍了Solr删除排名或修改排名功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想优化我的Solr引擎.我不要排名结果.我只希望所有符合我的查询的文档都可以删除它.这样可以改善数据检索?

I want to optimise my Solr engine. I don't want ranked results. I just want all docs which match my query is there any way I can remove it . So that retrieving data improves ?

推荐答案

无需删除相关性排名即可达到您想要的目标.

There is no need to remove relevancy ranking to achieve what you want.

通过将rows参数设置为与numfound相同的数字,您将检索所有与查询匹配的文档. http://url-to-some-server/solr/select?q=somequery&rows=200

By setting the rows parameter to the same number as the numfound you will retrieve all documents matching your query. http://url-to-some-server/solr/select?q=somequery&rows=200

如果您希望文档按照相关性以外的其他方式排序,只需添加&sort=somefield desc 其中somefield是可排序的字段.

if you want the documents sorted in another way than by relevance, just add a &sort=somefield desc where somefield is a sortable field.

这篇关于Solr删除排名或修改排名功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆