{
"global_string_mv": {
"match_mapping_type": "string",
"match": "global*_string_mv",
"mapping": {
"type": "text",
"copy_to": "global_fields_string_mv",
"fields": {
"text_en": {
"type": "text",
"analyzer": "text_en_index",
"search_analyzer": "text_en_query"
},
"text_en_shingle": {
"type": "text",
"analyzer": "text_shingle_en_index",
"search_analyzer": "text_shingle_en_query"
},
"keyword": {
"type": "keyword"
}
}
}
}
},
In elastic we have copy_to parameter for copying the fields. Is there any way to replicate the same in mongodb while indexing???