You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we look at the query parameters produced tho, we got this status:active AND lastAttendedDate > 1700000000000
By looking at the internal code:
String?sql(Set<FilterGroup> filterGroups) {
final groups = filterGroups.whereNot((element) => element.isEmpty);
if (groups.isEmpty) returnnull;
return groups.map(_sqlGroup).join(' AND ');
}
This function seems to be adding an AND between multiple-group, but in our case what is not obvious to us is why our filter is considered to be made of 2 groups, where we only have one. This seems to happen only when we use Filter.comparison or Filter.range.
Our expectation is that when we add a Disjuctive group that will be respected, but in this case it seems to be forced into a conjuctive one, why is that?
Some additional info is that all our facets are configured as filters only in the dashboard.
Any help?
The text was updated successfully, but these errors were encountered:
We are trying to create the following query:
status:active OR lastAttendedDate > 1700000000000
Our code looks like this:
When we look at the query parameters produced tho, we got this
status:active AND lastAttendedDate > 1700000000000
By looking at the internal code:
This function seems to be adding an
AND
between multiple-group, but in our case what is not obvious to us is why our filter is considered to be made of 2 groups, where we only have one. This seems to happen only when we useFilter.comparison
orFilter.range
.Our expectation is that when we add a Disjuctive group that will be respected, but in this case it seems to be forced into a conjuctive one, why is that?
Some additional info is that all our facets are configured as
filters only
in the dashboard.Any help?
The text was updated successfully, but these errors were encountered: