I have searching data from index. I am not getting exact data. I am also getting related data too. How can i restrict that.
Here is my code
"fields": ["xxx"],
"query": {
"bool": {
"should": [
{
"match": {
"xxx":"yyy"
}
}
]
}
}