I am writing query get all documents which has "am" or "pm" in their name, and my query goes like this: (sellerName:am pm).
Returned document as follows:
doc1:
seller name:am
city: bangalore
state:Kar
country:In
zip:560034
doc2:
seller name:pm
city: bang
state:Kar
country:In
zip:560034
doc3:
seller name: Ganesh
city: bang
state:Kar pm
country:In
zip:560034
First two documents are getting returned as we have am or pm in their name, My question is even though we don't have am or pm in the seller name of Doc3 still this is even getting as match. This is because we have pm in zip code if doc3.
I don't want this to be returned as a result. How can I do this? And why its matching with the Doc3, even though doc3 does not contain am or pm.
Thanks in advance.