You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2021/09/16 08:27:02 UTC
[unomi] branch UNOMI-462-past-events updated: Fix
pastEventsDisablePartitions
This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch UNOMI-462-past-events
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/UNOMI-462-past-events by this push:
new 7d4491f Fix pastEventsDisablePartitions
7d4491f is described below
commit 7d4491fac8b1ac3c6a710514d3a9633f3889c72a
Author: Kevan <ke...@jahia.com>
AuthorDate: Thu Sep 16 10:26:52 2021 +0200
Fix pastEventsDisablePartitions
---
.../org/apache/unomi/services/impl/segments/SegmentServiceImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java b/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java
index d219776..0122345 100644
--- a/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java
+++ b/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java
@@ -906,8 +906,8 @@ public class SegmentServiceImpl extends AbstractServiceImpl implements SegmentSe
Set<String> profileIds = new HashSet<>();
if(pastEventsDisablePartitions) {
- profileIds.addAll(persistenceService.aggregateWithOptimizedQuery(countExistsCondition, new TermsAggregate("profileId"),
- Event.ITEM_TYPE, maximumIdsQueryCount).keySet());
+ profileIds.addAll(persistenceService.aggregateWithOptimizedQuery(countExistsCondition, new TermsAggregate("itemId"),
+ Profile.ITEM_TYPE, maximumIdsQueryCount).keySet());
} else {
Map<String, Double> m = persistenceService.getSingleValuesMetrics(countExistsCondition, new String[]{"card"}, "itemId.keyword", Profile.ITEM_TYPE);
long card = m.get("_card").longValue();