[
https://issues.apache.org/jira/browse/UNOMI-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Serge Huber resolved UNOMI-424.
-------------------------------
Fix Version/s: 1.5.5
Resolution: Fixed
> 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
> Fix For: 1.5.5
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)