You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2020/12/23 03:51:16 UTC

[james-project] 02/10: MAILBOX-403 Consider headername as keyword

This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 187c13e4a0587f8f78454a53870f6f1c8917a13b
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Dec 21 18:41:33 2020 +0700

    MAILBOX-403 Consider headername as keyword
    
    This decrease the space being used (no analysis) given that the field were always
    queried as keyword
---
 .../org/apache/james/mailbox/elasticsearch/MailboxMappingFactory.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/MailboxMappingFactory.java b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/MailboxMappingFactory.java
index 944c4a7..629f292 100644
--- a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/MailboxMappingFactory.java
+++ b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/MailboxMappingFactory.java
@@ -189,8 +189,7 @@ public class MailboxMappingFactory {
                             .field(TYPE, NESTED)
                             .startObject(PROPERTIES)
                                 .startObject(HEADER.NAME)
-                                    .field(TYPE, TEXT)
-                                    .field(ANALYZER, KEYWORD)
+                                    .field(TYPE, KEYWORD)
                                 .endObject()
                                 .startObject(HEADER.VALUE)
                                     .field(TYPE, TEXT)


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org