es全局搜索 高亮功能

es全局搜索 高亮功能,第1张

es全局搜索 高亮功能

{
“query”: {
“bool”: {
“should”: [
{
“match_phrase”: {
“name”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“number”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“unit_name”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“anhao”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“contact”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“card_num”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“real_name”: “李”
}
},
{
“match_phrase”: {
“mobile”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“title”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“content”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“cost_type”: “u4e3du67ab”
}
},
{
“match_phrase”: {
“file_name”: “u4e3du67ab”
}
}
]
}
},
“highlight”: {
“fields”: {
“name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“mobile”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“card_num”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“contact”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“title”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“file_name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“content”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“real_name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“unit_name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“anhao”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
},
“cost_type”: {
“pre_tags”: [
“”
],
“post_tags”: [
“”
]
}
}
}
}

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5683540.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存