Is it possible to boost exact (standard) search when phonetic analyzer is used on the field?

I have a document with the field "name" which has a phonetic analyzer.
It works well, but I would like to see exact matches (standard) on the top of the page. Is there a possibility to use two analyzers in the same field or some other solution?

I thought about just adding a duplicate field in the document like "name. exact" or something like that, but it is a little bit complicated in my situation because in such case I will have an additional non useful duplicate field which is always equal to "name" and I will need to add additional logic in my application to duplicate the field whenever I need to analyze the same field with two analyzers.

Is there any other solution?

Best regards

Have a look at https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html

Thank you very much! It's what I need.

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