Hi all!
I'm trying to master Elasticsearch and there is one issue I have run into.
My documents have fields first_name, last_name, and country. And seems the search is working as I'm expecting with a multi_match query.
But now I want to add a suggestion feature and seems I can run it for each field separately with no problems. But this is not catering to my needs because it will generate a lot of possible combinations for each field which I will need to glue together. Most likely it will be confusing and not relevant.
What I want - is to have one combined field for each document with user county, first name, and last name. So I can perform my lookup on it and make my relevant suggestions.
I have tried to use "script" for this case. But seems this is not the right way or I'm doing something wrong. Can you please share with me some insights on how that feature can be implemented?