# Cannot retrieve specific fields

**URL:** https://discuss.elastic.co/t/cannot-retrieve-specific-fields/13241
**Category:** Elasticsearch
**Created:** [August 16, 2013, 2:32pm UTC](https://discuss.elastic.co/t/cannot-retrieve-specific-fields/13241 "2013-08-16T14:32:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Long](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Michael\_Long](https://discuss.elastic.co/u/Michael_Long)
#### Post date: [August 16, 2013, 2:32pm UTC](https://discuss.elastic.co/t/cannot-retrieve-specific-fields/13241/1 "2013-08-16T14:32:01Z")

</div>

I am trying to use the fields parameter in the request to only retrieve  
certain fields

If I do a search against type (/index/type/\_search), it works. If I do a  
search against index (/index/\_search), it doesn't return any fields (just  
the built-in \_index, \_type, \_id, and \_score)

Here is an example:  
{  
"fields":["headline"],  
"size":1000,  
"query":{"query\_string":{"query":"\*"}}  
}

If I take the fields param off when I go against /index/\_search, I get all  
fields returned

Any ideas on what is wrong?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Michael\_Long](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Michael\_Long](https://discuss.elastic.co/u/Michael_Long)
#### Post date: [August 16, 2013, 3:40pm UTC](https://discuss.elastic.co/t/cannot-retrieve-specific-fields/13241/2 "2013-08-16T15:40:43Z")

</div>

Nevermind I fixed it. I created a new index, new mapping, and reindex all  
data into it. The new index works properly

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:20am UTC](https://discuss.elastic.co/t/cannot-retrieve-specific-fields/13241/3 "2017-07-06T02:20:52Z")

</div>


