multi_get ids shortcut should grab custom fields.
This commit is contained in:
parent
6b497589ce
commit
b2769b1086
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue