Solr remove ranking or modify ranking feature

2019-08-30 05:34发布

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条回答
我只想做你的唯一
2楼-- · 2019-08-30 06:24

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.

查看更多
登录 后发表回答