Hi,
I am using highlight query like this
{
"_source": false,
"query": {
"bool": {
"must": [
{
"terms": {
"_id": [
"AVy-uHOZTMHOTjUDPQSr"
]
}
}
],
"should": {
"match": {
"attachment.content": "incorporated"
}
}
}
},
"highlight": {
"fields": {
"attachment.content": {
"number_of_fragments": 0
}
}
}
}
Here I am searching for a word "incorporate"
In the highlight result I am getting matches for following words :
incorporation and incorporate
I want the query to return occurrence of only the exact word "incorporate"
Is this possible?
Thanks in advance