# Wildcards in flattened fields for nested objects

**URL:** <https://discuss.elastic.co/t/wildcards-in-flattened-fields-for-nested-objects/14716>\
**Category:** Elasticsearch\
**Created:** [December 4, 2013, 10:12pm UTC](https://discuss.elastic.co/t/wildcards-in-flattened-fields-for-nested-objects/14716 "2013-12-04T22:12:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_nozzle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/the_nozzle/32/1935_2.png) [@the\_nozzle](https://discuss.elastic.co/u/the_nozzle)\
**Post date:** [December 4, 2013, 10:12pm UTC](https://discuss.elastic.co/t/wildcards-in-flattened-fields-for-nested-objects/14716/1 "2013-12-04T22:12:07Z")

</div>

hey all - is there a way to use a wildcard on a flattened nested object  
field like a.b.c.d ? The use case would be searching for a.\*.b.c =  
"something" .. For some reason I have no problems getting hits in the  
former case but I come up with nothing if I use a wildcard ..

Thanks for any hints

--  
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/44957887-c4f0-4fe2-9470-28e77f02d4dd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/44957887-c4f0-4fe2-9470-28e77f02d4dd%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![the\_nozzle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/the_nozzle/32/1935_2.png) [@the\_nozzle](https://discuss.elastic.co/u/the_nozzle)\
**Post date:** [December 4, 2013, 10:31pm UTC](https://discuss.elastic.co/t/wildcards-in-flattened-fields-for-nested-objects/14716/2 "2013-12-04T22:31:43Z")

</div>

More concrete example:  
{"filter":{"prefix":{"facts.megaraid\_pdlist.pd0.inquiry\_data":"SEA"}}} -  
works fine with the expected number of hits  
{"filter":{"prefix":{"facts.megaraid\_pdlist.pd\*.inquiry\_data":"SEA"}}} -  
returns no hits ..

On Wednesday, December 4, 2013 2:12:07 PM UTC-8, the\_nozzle wrote:

> hey all - is there a way to use a wildcard on a flattened nested object  
> field like a.b.c.d ? The use case would be searching for a.\*.b.c =  
> "something" .. For some reason I have no problems getting hits in the  
> former case but I come up with nothing if I use a wildcard ..
> 
> Thanks for any hints

--  
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/8c158fe9-97c6-41d3-847a-3747d5c9a69e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8c158fe9-97c6-41d3-847a-3747d5c9a69e%40googlegroups.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:03am UTC](https://discuss.elastic.co/t/wildcards-in-flattened-fields-for-nested-objects/14716/3 "2017-07-06T02:03:13Z")

</div>


