Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常,带有构面选项的 solr 查询会根据构面计数以排序顺序返回结果。当我将构面限制设置为 -1 时,结果未按排序顺序返回;这意味着我必须在服务器端手动进行排序。
我是否需要在 solr 查询中附加任何内容才能按排序顺序获取它?
请尝试facet.sort=count
默认的分面顺序是基于计数,降序,但如果 facet.limit 小于 0,它将返回索引顺序而不是计数 desc 顺序
详细信息可以从Solr Wiki阅读