通过使用Solr7.5.0 webUI,我试图通过设置以下内容来对我的架构“ data_creazione”的字段进行排序:
&fl = data_creazione:[2017-11-12T00:00:00Z TO NOW]&sort = data_creazione asc
我的完整查询网址为:
http://localhost:8983/solr/NUR/select?fq=data_creazione:[2017-11-12T00:00:00Z%20%20TO%20%20NOW]&q=regione%20lazio&sort=data_creazione%20asc
当我检查结果时,我观察到奇怪和错误的排序行为:
此外,我正尝试使用Solr.net驱动程序将.emcore2.1应用程序中的相同查询发送到Solr 7.5.0,并返回相同的内容排序错误。
注意:当我尝试查询相同查询时,但在降序的'desc'方向上一切正常。所有结果页面均正确排序。 Solr 7.2.0中不会出现此错误:按日期字段的升序和降序排序可以正常工作
在我的托管模式中,以这种方式声明“ data_creazione”字段:
<fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
...
<field name="data_creazione" type="pdate" multiValued="false" indexed="false" stored="true"/>