Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
15所TongWeb
aserver
Commits
746587a1
Commit
746587a1
authored
Jul 07, 2020
by
张龙发
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库文件升级
parent
0df8cb20
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
150 additions
and
0 deletions
+150
-0
DM_UpdateSQL.xml
src/main/resources/DBUpdate/DM_UpdateSQL.xml
+150
-0
No files found.
src/main/resources/DBUpdate/DM_UpdateSQL.xml
View file @
746587a1
...
...
@@ -769,4 +769,153 @@
alter table AS_TREECLASSFIC add(SERIALINDEX VARCHAR2(500));
</sql>
</version>
<version
edition=
"44"
description=
"ES搜索模板升级"
>
<sql
creator=
"zhanglongfa"
createDate=
"20200707"
note=
"ES搜索模板升级"
>
delete from AS_SEARCH_TEMPLATE where key='catalog_home_result' or key = 'catalog_file_home_result';
insert into "AS_SEARCH_TEMPLATE" ("ID","KEY","TEMPLATE","DESCRIPTION","PARAS","INDICES") values (818, 'catalog_home_result', '{
"_source" : {
"excludes" : ["files.*"]
},
"query" : {
"bool" : {
"must" : {{#toJson}}searchStatement{{/toJson}},
"filter": [
{"term" : { "business_id" : "{{businessId}}" }},
{"terms" : {{#toJson}}libId{{/toJson}}},
{
"bool":{
"should":[
{"prefix":{"idseq":"{{idSeq}}"}},
{"term" : {"idseq.keyword": "{{idSeq}}"}}
]
}
}
]
}
},
"from" : "{{from}}",
"size" : "{{size}}",
"highlight" : {
"fields" : {
"*" : {}
}
}
}', '仅搜索指定目录,高亮所有字段,搜素档案类型与档案分类', '{
"from":"0",
"size":"10",
"businessId":"1",
"libId":"1",
"idSeq":"109.",
"searchStatement":[{
"multi_match" : {
"query": "档案",
"fields": "*_retrieval",
"type": "most_fields",
"lenient": true
}
},{
"multi_match" : {
"query": "济宁",
"fields": "*_retrieval",
"type": "most_fields",
"lenient": true
}
}]
}
', 'archser');
insert into "AS_SEARCH_TEMPLATE" ("ID","KEY","TEMPLATE","DESCRIPTION","PARAS","INDICES") values (822, 'catalog_file_home_result', '{
"_source" : {
"excludes" : ["files.*"]
},
"query": {
"bool" : {
"must" : {
"bool" : {
"should" : [
{
"bool":{
"must": {{#toJson}}searchStatement{{/toJson}}
}
},
{
"bool":{
"must": {{#toJson}}searchFileStatement{{/toJson}}
}
}
]
}
},
"filter": [
{"term" : {"business_id": "{{businessId}}"}},
{"terms" : {{#toJson}}libId{{/toJson}}},
{
"bool":{
"should":[
{"prefix":{"idseq":"{{idSeq}}"}},
{"term" : {"idseq.keyword": "{{idSeq}}"}}
]
}
}
]
}
},
"from" : "{{from}}",
"size" : "{{size}}",
"highlight" : {
"fields" : {
"*" : {}
}
}
}', '搜索档案类型与档案分类,所有目录和文件,高亮所有字段', '{
"from":"0",
"size":"500",
"businessId":"2",
"libId":"1745",
"idSeq":"109.",
"searchStatement":[{
"multi_match" : {
"query": "档案",
"fields": "*_retrieval",
"type": "most_fields",
"lenient": true
}
},{
"multi_match" : {
"query": "济宁",
"fields": "*_retrieval",
"type": "most_fields",
"lenient": true
}
}],
"searchFileStatement":[
{
"nested" : {
"path" : "files",
"query" : {
"multi_match" : {
"query": "档案",
"type": "best_fields"
}
}
}
},
{
"nested" : {
"path" : "files",
"query" : {
"multi_match" : {
"query": "城乡",
"type": "best_fields"
}
}
}
}
]
}
', 'archser');
</sql>
</version>
</update>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment