Multiple wildcards (*) in dynamic mapping possible?

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

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 :slight_smile: