I have a document like following:
{
"title": "the productivity is ...."
}
and I use ES built-in english analyzer on both index and query time.
When I search "product" with highlight on title field:
{
"query": {
"match": {
"Title": "product"
}},
"highlight":{"pre_tags":[""],"post_tags":[""],"fields":{"title":{}}}
}
I got the result that the productivity is highlighted:
"highlight": {
"Title": [
"the productivity is "
]
}
I understand that it is because with built-in english analyzer, the "productivity" is transformed to "product" in inverse index.
But is it possible to only highlight the exactly same text as the query term? That is, in my above example, I don't want productivity is highlighted.