{
“query”: {
“bool”: {
“should”: [
{
“match_phrase”: {
“name”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“number”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“unit_name”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“anhao”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“contact”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“card_num”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“real_name”: “李”
}
},
{
“match_phrase”: {
“mobile”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“title”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“content”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“cost_type”: “\u4e3d\u67ab”
}
},
{
“match_phrase”: {
“file_name”: “\u4e3d\u67ab”
}
}
]
}
},
“highlight”: {
“fields”: {
“name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“mobile”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“card_num”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“contact”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“title”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“file_name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“content”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“real_name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“unit_name”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“anhao”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
},
“cost_type”: {
“pre_tags”: [
“”
],
“post_tags”: [
“</b>”
]
}
}
}
}
es全局搜索 高亮功能
最新推荐文章于 2024-06-23 15:25:27 发布