feat(elasticsearch): 更换索引库、创建索引库
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"mappings": {
|
||||
"documentchery": {
|
||||
"properties": {
|
||||
"applicable_vehicle": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"create_time_c": {
|
||||
"type": "long"
|
||||
},
|
||||
"dynamic_type": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"enterprise_standard_state": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"es_create_time": {
|
||||
"type": "long"
|
||||
},
|
||||
"grade_classification": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"implementation_date": {
|
||||
"type": "long"
|
||||
},
|
||||
"push_range_flag": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"release_date": {
|
||||
"type": "long"
|
||||
},
|
||||
"release_status": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_type": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard_class": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard_code": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard_property": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard_state": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard_state_order": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard_type_order": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"type": "text",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -155,6 +155,8 @@ public class ShiroConfig {
|
||||
filterChainDefinitionMap.put("/sync/**", "anon");
|
||||
//拆分标准查看图片
|
||||
filterChainDefinitionMap.put("/sys/split/file/getImage", "anon");
|
||||
// ocr排除
|
||||
filterChainDefinitionMap.put("/laws/ocr/OCRRestful/OcrHandleResult", "anon");
|
||||
|
||||
// 获取token
|
||||
filterChainDefinitionMap.put("/srms/getByToken", "anon");
|
||||
|
||||
@@ -6,8 +6,8 @@ package com.jero.modules.laws.home.enums;
|
||||
* @date 2023/11/17 9:15
|
||||
*/
|
||||
public enum HomeSearchEnum {
|
||||
INDEX_NAME_DOCUMENT_ZQ("全文标准名称","documentLibraryZq"),
|
||||
TYPE_NAME_DOCUMENT_ZQ("全文标准类型","documentZq");
|
||||
INDEX_NAME_DOCUMENT_ZQ("全文标准名称","documentLibraryChery"),
|
||||
TYPE_NAME_DOCUMENT_ZQ("全文标准类型","documentChery");
|
||||
|
||||
String name;
|
||||
String value;
|
||||
|
||||
@@ -1586,20 +1586,4 @@ public class FileSpiltService {
|
||||
}
|
||||
return treeList.size();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String paragraphString = "Article 1";
|
||||
String regex = "^[0-9]*$";
|
||||
if (paragraphString.toLowerCase().contains("article")) {
|
||||
String pp = paragraphString.replaceAll("\t", "")
|
||||
.replaceAll("\b", "").replaceAll(" ", "");
|
||||
if (pp.substring(pp.length()-1).matches(regex)) {
|
||||
System.out.println("ok");
|
||||
}
|
||||
}
|
||||
|
||||
FileSpiltService fileSpiltService = new FileSpiltService();
|
||||
System.out.println(fileSpiltService.getOneStartDigit(paragraphString, SplitFileTypeTypeEnum.EU));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user