Please format your code using </>
icon as explained in this guide. It will make your post more readable.
Or use markdown style like:
```
CODE
```
I edited your question.
I tried to ran it locally and it did not hang but failed:
DELETE test
PUT test
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"default": {
"type": "custom",
"tokenizer": "ik_max_word",
"filter": [
"stemmer"
]
}
}
}
},
"data": {
"mappings": {
"folder": {
"properties": {
"id": {
"type": "integer",
"store": false
},
"name": {
"type": "keyword",
"index": "analyzed",
"similarity": "BM25",
"analyzer": "default",
"search_analyzer": "default",
"store": false
},
"type": {
"type": "integer",
"index": "no",
"store": false
},
"owner": {
"type": "keyword",
"index": "analyzed",
"similarity": "BM25",
"analyzer": "default",
"search_analyzer": "default",
"store": false
},
"path": {
"type": "keyword",
"index": "analyzed",
"similarity": "BM25",
"analyzer": "default",
"search_analyzer": "default",
"store": false
}
}
}
}
}
}
Gives:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Custom Analyzer [default] failed to find tokenizer under name [ik_max_word]"
}
],
"type": "illegal_argument_exception",
"reason": "Custom Analyzer [default] failed to find tokenizer under name [ik_max_word]"
},
"status": 400
}