
PUT /sfc_media

{
		"settings": {
			"number_of_shards": "5",
			"number_of_replicas": "1"
		},
		"mappings": {
			"dynamic": "strict",
			"dynamic_date_formats": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis",
			"properties": {
				"fileName": {
					"type": "text",
					"analyzer": "ik_max_word",
					"search_analyzer": "ik_max_word"
				},
				"description": {
					"type": "text",
					"analyzer": "ik_max_word",
					"search_analyzer": "ik_smart"
				},
				"title": {
					"type": "text",
					"analyzer": "ik_max_word",
					"search_analyzer": "ik_max_word"
				},
				
				"videoText": {
					"type": "text",
					"analyzer": "ik_max_word",
					"search_analyzer": "ik_smart"
				},
				
				"tags": {
					"type": "keyword"
				},
				
				"personTags": {
					"type": "keyword"
				},
				
				"labelTags": {
					"type": "keyword"
				},
				
				"deptId": {
					"type": "keyword"
				},
				"storeType": {
					"type": "integer"
				},
				"id": {
					"type": "integer"
				},
	
				
				"typeId": {
					"type": "integer"
				},
	
				"createTime": {
					"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis",
					"type": "date"
				},
	
				 
				"groupId": {
					"type": "integer"
				},
				"status": {
					"type": "integer"
				},
				"uploadStatus": {
					"type": "integer"
				},
				"duration": {
					"type": "integer"
				},
				"height": {
					"type": "integer"
				},
				"width": {
					"type": "integer"
				},
	
				"dirId": {
					"type": "integer"
				},
				"videoBitrate": {
					"type": "integer"
				},
	
	
				"fileMd5": {
					"type": "keyword"
				},
	
	
				"programId": {
					"type": "integer"
				},
				
				"videoId": {
					"type": "integer"
				},
				"userId": {
					"type": "keyword"
				},
				"userName": {
					"type": "keyword"
				},
	
				"size": {
					"type": "long"
				},
				"cateId": {
					"type": "integer"
				},
	
				"cateIdLeaf": {
					"type": "integer"
				},
				"mediaStatus": {
					"type": "integer"
				},
	
				"decodeStatus": {
					"type": "integer"
				},
				"isCollect": {
					"type": "integer"
				},
	
	
	
				"fps": {
					"type": "integer",
					"index": false
				},
				"audioBitrate": {
					"type": "integer",
					"index": false
				},
				"previewUrl": {
					"type": "text",
					"index": false
				},
				"originalFile": {
					"type": "text",
					"index": false
				},
				"coverUrl": {
					"type": "text",
					"index": false
				},
				"format": {
					"type": "text",
					"index": false
				},
				"videoCodec": {
					"type": "text",
					"index": false
				},
				"audioCodec": {
					"type": "text",
					"index": false
				}
	
	
	
	
			}
		}
	}