solr - SOLR 查询返回值,但 stats.countDistinct 仍然缺失
问题描述
这是我的 solr 查询,结果返回了一些值,但无法计算 distinct :
"stats.field":"deviceId"
"numFound":38
"deviceId":"11004084101MTVCN240D63C00010"
"missing":38
"distinctValues":[]
这是完整的回复:
{
"responseHeader": {
"status": 0,
"QTime": 0,
"params": {
"q": "*:*",
"stats.calcdistinct": "true",
"indent": "on",
"stats": "on",
"start": "0",
"fq": [
"creationTime:[\"2018-10-19\" TO \"2018-10-19 23:59:59\"]",
"tenant:mailink.MKH13.KVMB.DXHN1"
],
"rows": "1",
"wt": "json",
"stats.field": "deviceId"
}
},
"response": {
"numFound": 38,
"start": 0,
"docs": [
{
"creationTime": "2018-10-19 21:13:55",
"deviceId": "11004084101MTVCN240D63C00010",
"tenant": "mailink.MKH13.KVMB.DXHN1",
"status": 0,
"id": "685b041f-91af-424f-9e9d-b06db9fbcd94",
"_version_": 1614767301005934600
}
]
},
"stats": {
"stats_fields": {
"deviceId": {
"min": null,
"max": null,
"count": 0,
"missing": 38,
"distinctValues": [],
"countDistinct": 0
}
}
}
}
任何帮助表示赞赏:) 谢谢!
解决方案
推荐阅读
- python - 使用python烧瓶中的变量从同一目录访问文件
- python - 将多个列表写入不同的文件
- python - authlib OAuth 客户端与 Flask 应用程序一起使用的更好示例?
- kubernetes - 如何显示已安装图表的可用更新
- python - 检查python脚本是否从另一个python脚本linux运行
- c++ - 用于查找给出分割错误的数组中最大元素的出现次数的代码
- python - 如何在忽略零值的情况下遍历列表
- clojure - Clojure 中 tools.deps 的 leiningen :repl-options {:init-ns 'user} 等价物是什么?
- inheritance - Dart - 如何使用特定的构造函数扩展 Map?
- reactjs - 你如何在 vscode 中显示反应组件道具的预期值?