Benoit Tellier created JAMES-3390:
-------------------------------------

             Summary: 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
             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-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to