Match across multiple nested documents


(Mortenhauberg) #1

Hi,

I have this mapping https://gist.github.com/mortenhauberg/1c8e514c2a824cadfa47, and a document that looks like this https://gist.github.com/mortenhauberg/8bcf1a08a373ca3c3d2b.

How would i go about searching for "Inge-Lise Rosenberg", or maybe just "Inge-Lise Rose"?


(Mortenhauberg) #2

I ended up using "copy_to" and then copy all values into a searchable field.
It seems to work


(Adrien Grand) #3

Indeed copy_to is the right way to do this.


(Mortenhauberg) #4

Great, I was not sure it was the correct approach. Thanks :slight_smile:


(system) #5