# Elasticsearch v1.0 specify fields reponse change

**URL:** <https://discuss.elastic.co/t/elasticsearch-v1-0-specify-fields-reponse-change/17205>\
**Category:** Elasticsearch\
**Created:** [April 25, 2014, 7:59pm UTC](https://discuss.elastic.co/t/elasticsearch-v1-0-specify-fields-reponse-change/17205 "2014-04-25T19:59:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![n81](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@n81](https://discuss.elastic.co/u/n81)\
**Post date:** [April 25, 2014, 7:59pm UTC](https://discuss.elastic.co/t/elasticsearch-v1-0-specify-fields-reponse-change/17205/1 "2014-04-25T19:59:06Z")

</div>

Regarding the statement in fields return value for the change implemented  
in v1.0:

"By always returning arrays, this simplifies user code."

Can someone please tell me how this simplifies user code? If I index an  
array, I expect an array back and I have nothing more to do than fetch the  
"\_fields". If I index a value, say first\_name, why on earth would I want to  
parse through "\_fields" and pull out the value from an array? Very unhappy  
with this change.

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b5b55af6-d3c6-4155-a3e7-3c471cd8100a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b5b55af6-d3c6-4155-a3e7-3c471cd8100a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 25, 2014, 8:01pm UTC](https://discuss.elastic.co/t/elasticsearch-v1-0-specify-fields-reponse-change/17205/2 "2014-04-25T20:01:07Z")

</div>

It certainly didn't simplify anything for me either. For the most part its  
best to switch to source filtering, spits out results similarly to how  
fields used to.

Nik

On Fri, Apr 25, 2014 at 3:59 PM, n8 [ndcolling@gmail.com](mailto:ndcolling@gmail.com) wrote:

> Regarding the statement in fields return value for the change implemented  
> in v1.0:
> 
> "By always returning arrays, this simplifies user code."
> 
> Can someone please tell me how this simplifies user code? If I index an  
> array, I expect an array back and I have nothing more to do than fetch the  
> "\_fields". If I index a value, say first\_name, why on earth would I want  
> to  
> parse through "\_fields" and pull out the value from an array? Very unhappy  
> with this change.
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b5b55af6-d3c6-4155-a3e7-3c471cd8100a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b5b55af6-d3c6-4155-a3e7-3c471cd8100a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b5b55af6-d3c6-4155-a3e7-3c471cd8100a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b5b55af6-d3c6-4155-a3e7-3c471cd8100a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0B1NBaOC9yB72dmGBMxJ%2BR1XN%3DUW6wG0PO05xZX-OSdA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0B1NBaOC9yB72dmGBMxJ%2BR1XN%3DUW6wG0PO05xZX-OSdA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:33am UTC](https://discuss.elastic.co/t/elasticsearch-v1-0-specify-fields-reponse-change/17205/3 "2017-07-06T01:33:27Z")

</div>


