Skip to content

Commit 11827ee

Browse files
ericktkimchy
authored andcommitted
multi_get ids shortcut should grab custom fields.
1 parent 736a057 commit 11827ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public void add(@Nullable String defaultIndex, @Nullable String defaultType, @Nu
282282
if (!token.isValue()) {
283283
throw new ElasticSearchIllegalArgumentException("ids array element should only contain ids");
284284
}
285-
add(new Item(defaultIndex, defaultType, parser.text()));
285+
add(new Item(defaultIndex, defaultType, parser.text()).fields(defaultFields));
286286
}
287287
}
288288
}
@@ -332,4 +332,4 @@ public void add(@Nullable String defaultIndex, @Nullable String defaultType, @Nu
332332
item.writeTo(out);
333333
}
334334
}
335-
}
335+
}

0 commit comments

Comments
 (0)