Commit bd202cfb authored by 郭晓俊's avatar 郭晓俊

升级sql语句,添加索引管理搜索模板

parent 3b55a0be
...@@ -2457,6 +2457,46 @@ ...@@ -2457,6 +2457,46 @@
alter table AS_HANDOVER add AUDIT_RESULT VARCHAR2(100); alter table AS_HANDOVER add AUDIT_RESULT VARCHAR2(100);
</sql> </sql>
</version> </version>
<version edition="108" description="ES搜索模板升级-索引管理搜索模板">
<sql creator="guoxiaojun" createDate="20201215" note="ES搜索模板升级-索引管理搜索模板">
delete from AS_SEARCH_TEMPLATE where key='index_search';
insert into AS_SEARCH_TEMPLATE ("ID","KEY","TEMPLATE","DESCRIPTION","PARAS","INDICES") values (SEQ_SEARCH_TEMPLATE.nextval, 'index_search', '
{
"_source" : {
"excludes" : ["files.*"]
},
"query" : {
"bool" : {
"should" : [
{
"multi_match" : {
"query": "{{q}}",
"type": "{{multi_match_type}}",
"lenient": true
}
},
{
"term": {"_id": "{{q}}"}
}
]
}
},
"from" : "{{from}}",
"size" : "{{size}}",
"highlight" : {
"fields" : {
"*" : {}
}
}
}', '索引管理搜索模板', '{
"q":"档案",
"from":"0",
"size":"10",
"businessId":"2",
"multi_match_type":"phrase"
}', 'archser');
</sql>
</version>
</update> </update>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment