multi_get ids shortcut should grab custom fields.

This commit is contained in:
Erick Tryzelaar 2011-10-14 17:08:20 -07:00 committed by Shay Banon
parent 6b497589ce
commit b2769b1086
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}
}