我想通過非常廣泛的查詢分頁,但即使存在行和開始參數,Solr也只返回10個結果。通過Solr搜索結果分頁
http://localhost:8983/solr/patents/query?q=*:*&rows=10000000&start=9
這將返回:
{
"responseHeader":{
"status":0,
"QTime":0,
"params":{
"q":"*:*",
"start":"9",
"rows":"10000000"}},
"response":{"numFound":10,"start":9,"docs":[
{
"date":"1980-07-10T00:00:00Z",
"id":117008,
"country":"US",
"title":"Solr test",
"_version_":1525967658488430592}]
}}
什麼是經過幾千年的文檔進行分頁的最佳方法?
這是什麼目標?無論如何,通過如此高的行值從Solr獲取大量文檔不是一個好主意。分頁意味着取小批量。如果您想在其他地方從您的索引路由/傳輸文檔,則有更好的方法。 – cheffe