[
https://issues.apache.org/jira/browse/UNOMI-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17460975#comment-17460975
]
romain.gauthier edited comment on UNOMI-538 at 12/16/21, 7:00 PM:
------------------------------------------------------------------
Thanks Serge.
An example is the cardinality aggregation that would allow to do requests such
as "most visited blog articles, only counting one view per session or per
profile".
Here is the excerpt from the request to ES:
{code:java}
{
"aggs": {
"cd98b774-23f0-4823-a4a6-b510964746eb": {
"terms": {
"field": "target.properties.pageInfo.pagePath.keyword",
"order": {
"b045d42c-6c86-4e39-bdb5-21141936b67f": "desc"
},
"size": 5
},
"aggs": {
"b045d42c-6c86-4e39-bdb5-21141936b67f": {
"cardinality": {
"field": "sessionId.keyword"
}
}
}
}
} {code}
was (Author: romain.gauthier):
Thanks Serge.
An example is the cardinality aggregation that would allow to do aggregation
requests such as "most visited blog articles, only counting one view per
session or per profile".
Here is the excerpt from the request to ES:
{code:java}
{
"aggs": {
"cd98b774-23f0-4823-a4a6-b510964746eb": {
"terms": {
"field": "target.properties.pageInfo.pagePath.keyword",
"order": {
"b045d42c-6c86-4e39-bdb5-21141936b67f": "desc"
},
"size": 5
},
"aggs": {
"b045d42c-6c86-4e39-bdb5-21141936b67f": {
"cardinality": {
"field": "sessionId.keyword"
}
}
}
}
} {code}
> Add support for more aggregations
> ---------------------------------
>
> Key: UNOMI-538
> URL: https://issues.apache.org/jira/browse/UNOMI-538
> Project: Apache Unomi
> Issue Type: Improvement
> Reporter: Serge Huber
> Priority: Major
>
> Currently we only support some bucket aggregations such as :
> - IP range
> - Numeric range
> - Date range
> - Term aggregations
> But we don't support other bucket aggregations or even metric/pipeline
> aggregations. Maybe we need some generic way (not too ES specific) way to
> pass aggregations ?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)