How to filter the results based on a condition if there is a whole word match from y attribute in x attribute

I want to do filtering based on a whole word match in Elasticsearch.

e.g.

POST /company/1
{
"name": "Hemani",
"age" : 23,
"experienceInYears" : 2,
"role" : "Python developer",
"object" :{
  "link":"Python, Scala, R"
}
}

I want to do match based on object.link in Role, if there is a whole word match then I want this document in my search.

But if it is something like this -

POST /company/1
{
"name": "Hemani",
"age" : 23,
"experienceInYears" : 2,
"role" : "Python developer",
"object" :{
  "link":"Rust"
}
}

In this case I dont want this to be returned.

Can anyone please point me in the right direction ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.