You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Pablo Anzorena (JIRA)" <ji...@apache.org> on 2015/12/01 13:43:11 UTC
[jira] [Created] (SOLR-8356) Subfacets gaps on aggregate data
Pablo Anzorena created SOLR-8356:
------------------------------------
Summary: Subfacets gaps on aggregate data
Key: SOLR-8356
URL: https://issues.apache.org/jira/browse/SOLR-8356
Project: Solr
Issue Type: Improvement
Reporter: Pablo Anzorena
Hey,
Watching the gap capability on the subfacets, I think it would be really great to have gaps on aggregated data.
So for example, if I want to see the total incomes made by all the companies in my system, grouped by a gap of total incomes, I imagine something like this:
{
total_income: {
type: range,
field: income,
agggap: 1000,
facet: {
companies: {
type: terms,
field: company,
facet: {
sum_income: "sum(income)"
}
}
}
}
}
and the response something like this:
{
"val": 1000,
"count": 7540,
"companies": {
"buckets": [
{
"val": "Reebook",
"count": 2322,
"sum_income": 1100
},
{
"val": "Nike",
"count": 961,
"sum_income": 1699
},
...
]
}
},
{
"val": 2000,
"count": 7540,
"companies": {
"buckets": [
{
"val": "New Balance",
"count": 248,
"sum_income": 2100
},
{
"val": "Jay",
"count": 2001,
"sum_income": 2500
},
...
]
}
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org