{
"query": {
"match_phrase": {
"stock": "紫光股份"
}
},
"highlight" : {
"fields" : {
"stock" : {}
}
}
}
自定义高亮标签
"keyword" : {
"pre_tags":["<mark>"],
"post_tags":["</mark>"]
}
{
"query": {
"match_phrase": {
"stock": "紫光股份"
}
},
"highlight" : {
"fields" : {
"stock" : {}
}
}
}
自定义高亮标签
"keyword" : {
"pre_tags":["<mark>"],
"post_tags":["</mark>"]
}