Description
-
-
- WHY
As an user i want to be able to build complex query using the FilterOperators (AND, OR, NOT)
- WHY
-
[[ "Email/query",{ "accountId": "ue150411c", "filter": { "operator": "OR", "conditions": [ { "inMailbox": "mailbox1"}, {"inMailbox": "mailbox2"} ] } }, "0" ]]
###HOW
- in the request accept the filter with an 'operator' field and distinguish it from the simple Condition.
This should be handled in the Json reads. And build a tree which have nodes being FilterOperator and leaf being FilterConditions. - translate those elastic search query
-
-
- Definition of Done
-
- write an integration test demonstrating the support of one level of Operator (like in the previous example)
- write an integration test demonstrating the support of an arbitrary level of nesting Operators.
- run those tests against the distributed version of james.