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
name.

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: https://www.elastic.co/guide/en/elasticsearch/reference/6.2/analysis.html

Thanx.. its working...

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