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 3.6 我有一个类似的查询?fq=nid:(4 6 2 3 1),结果以新的顺序返回,例如 (6 4 3 2 1) 而不是传入的顺序。有没有办法不使用提升来获得与我相同的结果通过了。
?fq=nid:(4 6 2 3 1)
文档根据排序参数返回。默认情况下是按分数。为了设置不同的排序,您只需传递所需的排序顺序。你能做到吗?如果你不能,那么可能唯一简单的方法就是如你所说,相应地提升文档并留下分数排序。
但是, fq 是一个过滤器,对文档的分数没有任何影响,您需要提升 q 参数(或其他地方,但这是最简单的)。