Mapping multifields


(mr_max) #1

I have source {
'phone_work' : '123232',
'phone_mobile': '12323',
'phone_other': '34324'
}
How can i mapping this fields to one field, that search was by one field "phones"


(Colin Goodheart-Smithe) #2

You could use the copy-to feature for this: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html#copy-to


(mr_max) #3

thanks.


(system) #4