-1
事實上,在這種情況下,我需要一些隨機排序的解決方案。我試圖通過Collections
如何排序solrdocumentlist對象
SolrDocumentList randSolrDocs = Collections.shuffle(solrDocList)
排序卻收到一個錯誤Type mismatch: cannot convert from void to SolrDocumentList
。
請幫忙。
非常感謝,我的可怕的注意力不集中 –