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 bt...@apache.org on 2016/04/06 11:21:58 UTC
[14/18] james-project git commit: MAILBOX-266 ElasticSearch response
sources should be limited to UIDs
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 <bt...@linagora.com>
Authored: Mon Mar 28 15:19:47 2016 +0700
Committer: Benoit Tellier <bt...@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