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 中的 Stats 组件来获取多面统计信息,效果非常好,现在我有兴趣为我的日期字段做同样的事情。但似乎将 facet.date 字段与 stats 模块一起使用是行不通的,有没有办法让它工作?
我的后备计划是将我的方面添加为特定字段(日期、年季、年月等),但这需要大量重新索引。
您最好的选择可能是以 unix 时间存储所有日期字段的副本。这样您就可以拥有一个整数字段并能够对它们运行统计信息。
不过,似乎日期字段的统计数据正在开发中。
https://issues.apache.org/jira/browse/SOLR-1023