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 "Antoine Duprat (JIRA)" <se...@james.apache.org> on 2016/07/19 13:59:20 UTC

[jira] [Created] (JAMES-1804) Handle jmap text search in ES

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