I want to search in elasticsearch but getting hit even though the condition does not match. For eg:-
{
tweet: [
{
firstname: Lav
lastname: byebye
}
{
firstname: pointto
lastname: ihadcre
}
{
firstname: letssearch
lastname: sarabhai
}
]
}
}
Now there are following condition:-
1) must:- firstname: Lav must:- lastname: byebye required:there should be hit
getting: Hit
2) must:- firstname: Lav must:- lastname: ihadcre required:there should not be hit
getting: Hit
I should not be getting hit in 2nd condition which is problem
thanks for help