From b2769b108619551f25390d4aeeb4378a9a39a2ac Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Fri, 14 Oct 2011 17:08:20 -0700 Subject: [PATCH] multi_get ids shortcut should grab custom fields. --- .../java/org/elasticsearch/action/get/MultiGetRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java index 0f27e99d906..96fc637d260 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java @@ -282,7 +282,7 @@ public class MultiGetRequest implements ActionRequest { if (!token.isValue()) { throw new ElasticSearchIllegalArgumentException("ids array element should only contain ids"); } - add(new Item(defaultIndex, defaultType, parser.text())); + add(new Item(defaultIndex, defaultType, parser.text()).fields(defaultFields)); } } } @@ -332,4 +332,4 @@ public class MultiGetRequest implements ActionRequest { item.writeTo(out); } } -} \ No newline at end of file +}