Yes you are right. Will have to handle this at the front-end. Since the order is maintained in an JSON array, the order will be available there.
On Sunday, 4 May 2014 14:16:28 UTC+5:30, David Pilato wrote: > > Elasticsearch gives you back your _source document as you sent it with no > modification. > If you want some fields, you need to use: > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html#search-request-fields > > I think that fields come back in the same order but I might be wrong. That > said, in JSON, order does not matter, right? > > -- > David ;-) > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs > > > Le 4 mai 2014 à 10:32, shrinidhi chaudhari > <[email protected]<javascript:>> > a écrit : > > fields in _source, such the result given are in a specified order. > > > On Sunday, 4 May 2014 13:56:37 UTC+5:30, David Pilato wrote: >> >> Do you mean fields in _source document? >> Or when using fields parameter when querying? >> >> -- >> David ;-) >> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs >> >> >> Le 4 mai 2014 à 10:17, shrinidhi chaudhari <[email protected]> a >> écrit : >> >> Is there a way to get a response in which the fields are in a particular >> order? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elasticsearch" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/62a93abc-4752-4c57-8b66-151d3dde2af8%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/62a93abc-4752-4c57-8b66-151d3dde2af8%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/51dfaae7-901b-4bf2-a2c2-e25599ca0a9a%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/51dfaae7-901b-4bf2-a2c2-e25599ca0a9a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/02c869a6-6fd2-4061-b5fc-45622200f3df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
