Elasticsearch gives you back your _source document as you sent it with no modification.
If you want some fields, you need to use: Elasticsearch Platform — Find real-time answers at scale | Elastic
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 shrinidhi.chaudhari@gmail.com 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 shrinidhi...@gmail.com 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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/62a93abc-4752-4c57-8b66-151d3dde2af8%40googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/51dfaae7-901b-4bf2-a2c2-e25599ca0a9a%40googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/A001DA4D-0399-4047-9F13-8F3E8E5FDE38%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.