You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Taybou (Jira)" <ji...@apache.org> on 2021/02/04 11:48:00 UTC
[jira] [Assigned] (UNOMI-424) Fix buildQuery for
BooleanConditionESQueryBuilder
[ https://issues.apache.org/jira/browse/UNOMI-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Taybou reassigned UNOMI-424:
----------------------------
Assignee: Taybou
> Fix buildQuery for BooleanConditionESQueryBuilder
> -------------------------------------------------
>
> Key: UNOMI-424
> URL: https://issues.apache.org/jira/browse/UNOMI-424
> Project: Apache Unomi
> Issue Type: Bug
> Reporter: Taybou
> Assignee: Taybou
> Priority: Major
>
> Currently, we have a problem with buildQuery in case of an "or" comparison operator.
> For example, we have the profile with existing email only. With this condition the builder will put the condition with *comparisonOperator* equal to *greaterThanOrEqualTo* in the BoolQueryBuilder filter clause instead of the should clause.
> {code:java}
> {
> "parameterValues": {
> "operator": "or",
> "subConditions": [
> {
> "parameterValues": {
> "propertyName": "properties.email",
> "comparisonOperator": "exists"
> },
> "type": "profilePropertyCondition"
> },
> {
> "parameterValues": {
> "value": 35,
> "scope": "properties.age",
> "comparisonOperator": "greaterThanOrEqualTo"
> },
> "type": "profilePropertyCondition"
> }
> ]
> },
> "type": "booleanCondition"
> }{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)