# \_all not pulling subfields

**URL:** <https://discuss.elastic.co/t/-all-not-pulling-subfields/18584>\
**Category:** Elasticsearch\
**Created:** [July 10, 2014, 6:31pm UTC](https://discuss.elastic.co/t/-all-not-pulling-subfields/18584 "2014-07-10T18:31:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefanie](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Stefanie](https://discuss.elastic.co/u/Stefanie)\
**Post date:** [July 10, 2014, 6:31pm UTC](https://discuss.elastic.co/t/-all-not-pulling-subfields/18584/1 "2014-07-10T18:31:07Z")

</div>

I have a mapping that looks something like this:

"source": {  
"properties": {  
"description": {  
"type": "string",  
"index": "not\_analyzed",  
"omit\_norms": true,  
"index\_options": "docs"  
},  
"id": {  
"type": "string",  
"index": "not\_analyzed",  
"omit\_norms": true,  
"index\_options": "docs"  
},  
"name": {  
"type": "string",  
"boost": 3.0,  
"analyzer": "snowball"  
}  
}  
}

However when running the following query:

{"query" :  
{"match" :  
{"\_all" : "test phrase"}  
}  
}

I don't get the results returned from this query:

{"query" :  
{"match" :  
{"source.name" : "test phrase"}  
}  
}

How do I get the '\_all' query to match on a subfield?

Thank you for any help,  
Stefanie

--  
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/b04dbe47-2b8a-4493-b867-4691eaee2381%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b04dbe47-2b8a-4493-b867-4691eaee2381%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 18, 2014, 9:43am UTC](https://discuss.elastic.co/t/-all-not-pulling-subfields/18584/2 "2014-07-18T09:43:44Z")

</div>

Hey,

from my birds eye view this should work. Can you create a fully fledged  
example (including index creation, mapping creation, document creation), so  
one can replay this. And tell your ES version along, if you have any  
special configuration going on.

--Alex

On Thu, Jul 10, 2014 at 8:31 PM, Stefanie [stefanie@backstit.ch](mailto:stefanie@backstit.ch) wrote:

> I have a mapping that looks something like this:
> 
> "source": {  
> "properties": {  
> "description": {  
> "type": "string",  
> "index": "not\_analyzed",  
> "omit\_norms": true,  
> "index\_options": "docs"  
> },  
> "id": {  
> "type": "string",  
> "index": "not\_analyzed",  
> "omit\_norms": true,  
> "index\_options": "docs"  
> },  
> "name": {  
> "type": "string",  
> "boost": 3.0,  
> "analyzer": "snowball"  
> }  
> }  
> }
> 
> However when running the following query:
> 
> {"query" :  
> {"match" :  
> {"\_all" : "test phrase"}  
> }  
> }
> 
> I don't get the results returned from this query:
> 
> {"query" :  
> {"match" :  
> {"source.name" : "test phrase"}  
> }  
> }
> 
> How do I get the '\_all' query to match on a subfield?
> 
> Thank you for any help,  
> Stefanie
> 
> --  
> 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/b04dbe47-2b8a-4493-b867-4691eaee2381%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b04dbe47-2b8a-4493-b867-4691eaee2381%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b04dbe47-2b8a-4493-b867-4691eaee2381%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b04dbe47-2b8a-4493-b867-4691eaee2381%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/CAGCwEM9Q8H\_KL3KEnMYciC5J-J6YTua-LLwV\_QuvWdpM-8%2BwyQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9Q8H_KL3KEnMYciC5J-J6YTua-LLwV_QuvWdpM-8%2BwyQ%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:14am UTC](https://discuss.elastic.co/t/-all-not-pulling-subfields/18584/3 "2017-07-06T01:14:59Z")

</div>

Closed on July 6, 2017, 1:14am UTC


