Taybou created UNOMI-424:
----------------------------

             Summary: Fix buildQuery for BooleanConditionESQueryBuilder
                 Key: UNOMI-424
                 URL: https://issues.apache.org/jira/browse/UNOMI-424
             Project: Apache Unomi
          Issue Type: Bug
            Reporter: Taybou


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)

Reply via email to