*:如何使用过滤器的查询*时默认不Solr的排序? [英] How does Solr sort by default when using filter query *:*?

查看:223
本文介绍了*:如何使用过滤器的查询*时默认不Solr的排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前有已应用没有过滤器/面/查询页面设置。这是(使用寻呼机)一所有内容的清单。该过滤器的查询是一样的东西 *:* (从任何领域的任何东西)

We currently have a page setup that has no filters/facet/queries applied. It is a listing of all content (using a pager). The filter query is something like *:* (anything from any field).

我无法弄清楚如何内容正在整理,虽然。它说,它是由相关性,但到底是什么,当你选择的一切意味着什么?

I can't figure out how the content is being sorted though. It says it's by "relevancy", but what does that mean when you're selecting everything?

我做了一些快速测试。它不会出现由日期分类的内容被修改,或输入到索引

I did some quick testing. It does not appear to be sorted by the date the content is modified, or entered into the index.

推荐答案

查询为 *:* 也被称为<一href=\"https://github.com/apache/lucene-solr/blob/trunk/lucene/core/src/java/org/apache/lucene/search/MatchAllDocsQuery.java?source=c\">a MatchAllDocsQuery 。根据太问题<一href=\"http://stackoverflow.com/questions/10310194/how-are-results-ordered-in-solr-in-a-match-all-docs-query\">How结果是在Solr中下令&QUOT;匹配所有文档和QUOT; 的查询将返回的文档以相同的顺序,因为他们存储在索引中。

Querying for *:* is also called a MatchAllDocsQuery. According to the SO question How are results ordered in solr in a "match all docs" query it will return the docs in the same order as they were stored in the index.

请注意,如果您更新现有的文件,它得到的删除并重新创建。因此,它会出现在以后这种搜索结束

Be aware that if you update an existing document, it get's deleted and recreated. As such it would appear at the end of such a search afterwards.

有(至少)在Lucene的Nabble两个线程我知道的是有趣的关于这一主题

There are (at least) two threads in Lucene's Nabble I am aware of that are interesting on this topic


  • http://lucene.472066.n3.nabble.com/Result-order-when-score-is-the-same-td2816127.html

    • 变得非常有趣在这里<一个href=\"http://lucene.472066.n3.nabble.com/Result-order-when-score-is-the-same-tp2816127p2817766.html\">http://lucene.472066.n3.nabble.com/Result-order-when-score-is-the-same-tp2816127p2817766.html

    这篇关于*:如何使用过滤器的查询*时默认不Solr的排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆