Exact match with multiple names from OSM elements

OK, so this might be a long intro but stay with me...
I've built a OSM names search engine, a bit like Nominatim, but better (at least for my site's needs).
I'm basically indexing everything that has a name in OSM.
The problem is that element in OSM may have more than one name.
So I accumulate them into arrays by their language key.
This is working fine so far and the search is working for things that interests the users of my site (i.e. outdoor stuff) by adding a boost for those things.
The results can be seen here:
The problem I'm facing is that I don't know how to do an exact match to a filed that can contain multiple names, which are all for the same entity.
I mean I probably need to change the mapping, adding an exact match field and disable norms, but I'm missing a solution for the multiple names...
Any help would be appreciated.

Search code can be found here:

Mapping can be found here:

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