[
https://issues.apache.org/jira/browse/JAMES-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
René Cordier closed JAMES-3390.
-------------------------------
Resolution: Done
> Email/Query support combination of filters with the FilterOperator (AND, OR,
> NOT)
> ---------------------------------------------------------------------------------
>
> Key: JAMES-3390
> URL: https://issues.apache.org/jira/browse/JAMES-3390
> Project: James Server
> Issue Type: Sub-task
> Components: JMAP
> Reporter: Benoit Tellier
> Assignee: Antoine Duprat
> Priority: Major
> Fix For: 3.6.0
>
>
> ### WHY
> As an user i want to be able to build complex query using the FilterOperators
> (AND, OR, NOT)
> {code:java}
> [[ "Email/query",{
> "accountId": "ue150411c",
> "filter": {
> "operator": "OR",
> "conditions": [
> { "inMailbox": "mailbox1"}, {"inMailbox": "mailbox2"}
> ]
> }
> }, "0" ]]
> {code}
> ###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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]