diff --git a/db/es_index.josn b/db/es_index.josn new file mode 100644 index 00000000..4fcc94e6 --- /dev/null +++ b/db/es_index.josn @@ -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 + } + } + } + } + } + } +} diff --git a/laws-base/laws-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java b/laws-base/laws-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java index caf03ea8..bcbd2528 100644 --- a/laws-base/laws-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java +++ b/laws-base/laws-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java @@ -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"); diff --git a/laws-modules/src/main/java/com/jero/modules/laws/home/enums/HomeSearchEnum.java b/laws-modules/src/main/java/com/jero/modules/laws/home/enums/HomeSearchEnum.java index 90ae6b15..0cfaa119 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/home/enums/HomeSearchEnum.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/home/enums/HomeSearchEnum.java @@ -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; diff --git a/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSpiltService.java b/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSpiltService.java index d0417be3..fef59402 100644 --- a/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSpiltService.java +++ b/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSpiltService.java @@ -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)); - - } }