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:40:00 UTC
[jira] [Created] (UNOMI-424) Fix buildQuery for
BooleanConditionESQueryBuilder
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)