Solr Facet查询 [英] Solr Facet Query

查看:300
本文介绍了Solr Facet查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个模式,该模式的字段Polarity的类型为文本",并且具有三个值0,1,-1和CreatedAt的类型为"date".

I have a schema which has field Polarity which is of type "text" and has three values 0,1,-1 and CreatedAt which is of type "date".

如何获取基于日期的每种极性的计数.例如,它给出的输出是,在2011年5月1日,有10个计数为0、10个计数为1和10个计数为-1

How can I get count of each polarity based on dates. For example, it gives the output that on 5/1/2011 there were 10 counts of 0, 10 counts of 1 and 10 counts of -1

推荐答案

稍晚一些,但可能会帮助其他人寻找答案.

A little late but may help others looking for an answer.

我建议检查Solr 枢轴,以检查这种分层构面.
您可以将日期和极性作为第二个方面,以在该日期内获取结果.

I would suggest check for Solr pivots for this kind of hierarchical faceting.
You can facet on the dates and the polarity as secondary facet to get results within the date.

这篇关于Solr Facet查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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