//curl -X PUT "http://192.168.71.52:9200/shirtcity_design_de_v1" -H 'Content-Type: application/json' -d'
{
"settings": {
"analysis": {
"analyzer": {
"sc_analyzer": {
"tokenizer": "sc_tokenizer"
}
},
"tokenizer": {
"sc_tokenizer": {
"type": "ngram",
"min_gram": 3,
"max_gram": 3,
"token_chars": [
"letter",
"digit"
]
}
}
}
},
"mappings": {
"designs": {
"properties": {
"big_template": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"checkout": {
"type": "long"
},
"design_id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"group": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"location": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "sc_analyzer"
}
}
}
}
}