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 查询中实现两个计数?我尝试过这样的事情:
q=query&field:[* TO *],-field:[* TO *]&start=0&rows=0&facet=true&facet.missing=true
即我正在尝试计算空记录而不是同一字段的空记录。
未报告错误,但未检索到结果。
这应该给你两个计数:
q=query&facet=true&facet.query=field:[* TO *]&facet.query=-field:[* TO *]&rows=0