feat: There is no way the, 个别字段数据不规整 没法排序

This commit is contained in:
super_liu
2022-06-17 16:24:57 +08:00
parent 7f36f4899e
commit fdfb696dd9
8 changed files with 22 additions and 30 deletions
@@ -5,12 +5,6 @@ bussstand/bussstand/_mapping?pretty&include_type_name=true
"properties": {
"standSortOrder": {
"type": "integer"
},
"numberTitle": {
"type": "integer"
},
"yearOrder": {
"type": "integer"
},
"BARQ": {
"type": "text",
+18 -2
View File
@@ -52,7 +52,16 @@ fulltextserch/fulltextserch/_mapping?pretty&include_type_name=true
"fielddata": true
},
"numberTitle": {
"type": "integer"
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"fielddata": true
},
"nameTitle": {
"type": "text",
@@ -67,7 +76,14 @@ fulltextserch/fulltextserch/_mapping?pretty&include_type_name=true
"fielddata": true
},
"yearOrder": {
"type": "integer"
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"fielddata": true
},
"standSortOrder": {
"type": "integer"
-6
View File
@@ -6,12 +6,6 @@ laws/laws/_mapping?pretty&include_type_name=true
"standSortOrder": {
"type": "integer"
},
"numberTitle": {
"type": "integer"
},
"yearOrder": {
"type": "integer"
},
"BDTWJHLAWS": {
"type": "text",
"fields": {
-6
View File
@@ -6,12 +6,6 @@ stand/stand/_mapping?pretty&include_type_name=true
"standSortOrder": {
"type": "integer"
},
"numberTitle": {
"type": "integer"
},
"yearOrder": {
"type": "integer"
},
"BARQ": {
"type": "text",
"fields": {