How to get exact record which will match string?

i want to get exact record from elasticsearch which field name should be exactly match with input query

for example:
I am having record with name: "raj kumar fillings", while i am trying to get record with name:"raj" (only) then ES giving its output as "raj kumar fillings" record. Can anyone explain me what happening here?
Thanks in Advacne

Change the mapping for your field and use a keyword type or a keyword analyzer.

i cant underestand. can you tell briefly how can i use keyword analyser

If you don't know what analyzers are here is some documentation:

Thanx.. its working...

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