PUT document_index
{
"settings": {
"analysis": {
"analyzer": {
"ik": {
"tokenizer": "ik_max_word"
}
}
},
"number_of_shards": 5,
"number_of_replicas": 1
},
"mappings": {
"dynamic": false,
"_source": {
"enabled": false
},
"properties": {
"document_id": {
"type": "keyword"
},
"title": {
"type": "text",
"analyzer": "ik_max_word"
},
"author": {
"type": "text",
"analyzer": "ik_max_word"
},
"kbase_id": {
"type": "keyword"
},
"content": {
"type": "text",
"analyzer": "ik_max_word"
},
"tags": {
"type": "text",
"analyzer": "whitespace"
}
}
}
}