My template file is becoming very large as I have had to add a lot of fields to it of Long and Text, so I have the following in the file over and over again: (for text and long types)
"server": {
"type": "text",
"norms": false,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 10000
}
}
},
Is there a way to just define my text definition once.. For instance I see something like this in some examples:
"string_fields": {
** "match": "*",
** "match_mapping_type": "string",
** "mapping": {
** "type": "text",
** "norms": false,
** "fields": {
** "keyword": {
** "type": "keyword",
** "ignore_above": 10000
** }
** }
** }
** }
Something like match_fields, and list all the fields here.