It seems there is some issue with monogdb while searching multiple phrases.
I have field having value 456 ABC
. When I do multiple phrase search with keyword { "$search" : "\"45\" \"ABC\"" }
or { "$search" : "\"456\" \"AB\"" }
, It returns document. It shouldn't return result as both phrases are not exactly matched. However if do { "$search" : "\"45\" \"AB\"" }
, then it doesn't return any result.
It seems if any one phrase is exactly matched, then it gives result even other phrases matches partially.