Solr remove ranking or modify ranking feature

佐手、 提交于 2020-01-06 05:36:09

问题


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 ?


回答1:


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

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

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



来源:https://stackoverflow.com/questions/5688621/solr-remove-ranking-or-modify-ranking-feature

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