Solr remove ranking or modify ranking feature

2019-08-30 06:04发布

问题:

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.