james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [14/18] james-project git commit: MAILBOX-266 ElasticSearch response sources should be limited to UIDs
Date Wed, 06 Apr 2016 09:21:58 GMT
MAILBOX-266 ElasticSearch response sources should be limited to UIDs


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/f9717d22
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/f9717d22
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/f9717d22

Branch: refs/heads/master
Commit: f9717d22082e4e70f016fe4acb27ba78003dca33
Parents: 2730305
Author: Benoit Tellier <btellier@linagora.com>
Authored: Mon Mar 28 15:19:47 2016 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Wed Apr 6 16:18:45 2016 +0700

----------------------------------------------------------------------
 .../james/mailbox/elasticsearch/search/ElasticSearchSearcher.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/f9717d22/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/search/ElasticSearchSearcher.java
----------------------------------------------------------------------
diff --git a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/search/ElasticSearchSearcher.java
b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/search/ElasticSearchSearcher.java
index ab4698e..b5e1792 100644
--- a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/search/ElasticSearchSearcher.java
+++ b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/search/ElasticSearchSearcher.java
@@ -79,6 +79,7 @@ public class ElasticSearchSearcher<Id extends MailboxId> {
                 client.prepareSearch(ElasticSearchIndexer.MAILBOX_INDEX)
                     .setTypes(ElasticSearchIndexer.MESSAGE_TYPE)
                     .setScroll(TIMEOUT)
+                    .setFetchSource(JsonMessageConstants.ID, "")
                     .setQuery(queryConverter.from(searchQuery, mailbox.getMailboxId().serialize()))
                     .setSize(size),
                 (searchBuilder, sort) -> searchBuilder.addSort(SortConverter.convertSort(sort)),


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


Mime
View raw message