# Multiple wildcards (\*) in dynamic mapping possible?

**URL:** <https://discuss.elastic.co/t/multiple-wildcards-in-dynamic-mapping-possible/64127>\
**Category:** Elasticsearch\
**Created:** [October 27, 2016, 10:24am UTC](https://discuss.elastic.co/t/multiple-wildcards-in-dynamic-mapping-possible/64127 "2016-10-27T10:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uprise10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uprise10/32/12759_2.png) [@uprise10](https://discuss.elastic.co/u/uprise10)\
**Post date:** [October 27, 2016, 10:24am UTC](https://discuss.elastic.co/t/multiple-wildcards-in-dynamic-mapping-possible/64127/1 "2016-10-27T10:24:05Z")

</div>

Hi,

I'm using a dynamic mapping for my index, but in fact I'd like to have a multi-level dynamic mapping.

So, for example, this would be my mapping path: `articles.*.terms.*`

It works perfectly if I just use `articles.*`, where it is filled with objects, but inside these objects, I'd like to have another wildcard match.

So the articles.

This is my current mapping (it's a PHP array, but I think you will get the idea): [https://gist.github.com/uprise10/121b981a0e3948a279ef63e30e626464](https://gist.github.com/uprise10/121b981a0e3948a279ef63e30e626464)

I thought that would work, but this is the rror message I get:  
`object mapping for [articles.28226.terms.facet_pipe_types.term_id] tried to parse field [term_id] as object, but found a concrete value`

Where "28226" matches the first asterisk and "facet\_pipe\_types" should match the second.

Am I doing something wrong, or is this simple not possible?

Thanks in advance 🙂

---

<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 5, 2017, 10:09pm UTC](https://discuss.elastic.co/t/multiple-wildcards-in-dynamic-mapping-possible/64127/2 "2017-07-05T22:09:07Z")

</div>


