Skip to content

Commit

Permalink
Enable field filtering during document aggregation for standard event…
Browse files Browse the repository at this point in the history
… queries
  • Loading branch information
apmoriarty committed Nov 22, 2024
1 parent d9c48e4 commit bc22b22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ public EventDataQueryFilter getFiEvaluationFilter() {
}

public EventDataQueryFilter getEventEvaluationFilter() {
if (evaluationFilter == null) {
// allows standard event queries to perform a seeking aggregation with field filtering
evaluationFilter = getEventFilter();
}
return eventEvaluationFilter != null ? eventEvaluationFilter.clone() : null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<property name="sortQueryPostIndexWithTermCounts" value="true" />
<property name="sortQueryPostIndexWithFieldCounts" value="true" />
<property name="eventFieldSeek" value="3" />
<property name="seekingEventAggregation" value="true"/>
</bean>

<util:list id="IvaratorCacheDirConfigs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
<property name="eventNextSeek" value="-1" />
<property name="tfFieldSeek" value="-1" />
<property name="tfNextSeek" value="-1" />
<property name="seekingEventAggregation" value="true"/>
<!-- control when to log warnings for long aggregations -->
<property name="docAggregationThresholdMs" value="-1" />
<property name="tfAggregationThresholdMs" value="-1" />
Expand Down

0 comments on commit bc22b22

Please sign in to comment.