Hi,
I am performing one regex query on the keyword field
POST 1101741821_mails/_search
{
"query": {
"regexp": {
"body.not_analyzed": ".hello my."
}
},
"highlight": {
"fields": {
"body.not_analyzed": {
"pre_tags": [""],
"post_tags": [""]
}
}
}
}
and my response is coming up like
"highlight" : {
"body.not_analyzed" : [
"""Hello my name is Joe Bloggs did you know that?
"""
]
}
}
So here my whole content is getting highlighted instead of only hello my what should I change in the highlight configuration I can't change the regex query