You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "René Cordier (Jira)" <se...@james.apache.org> on 2020/10/02 08:55:00 UTC
[jira] [Closed] (JAMES-3390) Email/Query support combination of
filters with the FilterOperator (AND, OR, NOT)
[ 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org