MultiGet with fields to return

Hi,

is it possible to specify the fields to return in a MultiGet (like it
is in a regular Get)?

If not: is it planned to implement this feature in a future release?

Regards,

Alex

It is implemented:

MultiGetRequestBuilder request = client.prepareMultiGet();
for (String id : ids) {
request.add(new MultiGetRequest.Item("users", "calculated",
id).fields("network_impact"));
}
MultiGetResponse result = request.execute().actionGet();

On Thu, Aug 25, 2011 at 4:21 PM, alexander.bau@unister-gmbh.de <
alexander.bau@unister-gmbh.de> wrote:

Hi,

is it possible to specify the fields to return in a MultiGet (like it
is in a regular Get)?

If not: is it planned to implement this feature in a future release?

Regards,

Alex

Oh, I've accidentally overlooked this in the Java docs.

Thank you.

Alex

Its not documented on the REST API, it will be once I can push again to
github: Elasticsearch Platform — Find real-time answers at scale | Elastic.

I remember one thing I did not like about it, which is the verbosity of this
case. I will fix that:
Multi Get: Allow to specify fields to fetch in the URI, and apply it automatically to all docs to get without explicit fields · Issue #1281 · elastic/elasticsearch · GitHub.

On Thu, Aug 25, 2011 at 5:21 PM, alexander.bau@unister-gmbh.de <
alexander.bau@unister-gmbh.de> wrote:

Hi,

is it possible to specify the fields to return in a MultiGet (like it
is in a regular Get)?

If not: is it planned to implement this feature in a future release?

Regards,

Alex