Antoine Duprat created JAMES-1804:
-------------------------------------

             Summary: Handle jmap text search in ES
                 Key: JAMES-1804
                 URL: https://issues.apache.org/jira/browse/JAMES-1804
             Project: James Server
          Issue Type: Bug
          Components: JMAP
            Reporter: Antoine Duprat
            Assignee: Antoine Duprat


Here is the specification from the text property on FilterCondition: "text: 
String|null Looks for the text in the from, to, cc, bcc, subject, textBody or 
htmlBody properties of the message."

The easiest way (without changing the ES indices) is to handle multiple fields 
in IndexableMessage. For example, IndexableMessage may have a text attibute 
which will be the concatenation of from, to, cc, bcc, subject, textBody and 
htmlBody 

We may also add a body attribute for textBody and htmlBody 

For information: 
http://stackoverflow.com/questions/22617674/does-elasticsearch-have-compound-indexes#22657490
 NOTE: add a CAPABILITY




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to