Hi Nigel
To your first update, Nanny ID 31486 French speaking in Stuttgart:
1) Unfortunately, I am unable to reproduce/confirn finding that Nanny in Stuttgart on our Production server, either for logged in or for guest users (see screenshots):
a) Using logged-in user nativefamily6:
lien caché
b) Using Guest user:
lien caché
2) Removing the French option only leaves 7 nannies found in Stuttgart, none of which has NATIVE LANGUAGE = French, and French is not available to choose, since the query result already excludes that 8th nanny.
3) Even searching for "Stuttgart, Allemagne" does not find the 8th nanny in Stuttgart (shows only results 1 - 7 of 7)
So therefore I'm curious how your result set is showing this nanny and we cannot reproduce this on production?!?
Checking the cache table directly for Stuttgart I'm seeing the same 8 entries.:
SELECT *, AsWKT(`point`) AS `point`
FROM `wp_toolset_maps_address_cache`
WHERE `address_passed` like '%Stuttgart%'
In my eyes however, the bottom two entries you have highlighted in message
https://toolset.com/forums/topic/toolset-maps-search-not-showing-all-results-searching-for-certain-cities/page/2/#post-2567631
are ALREADY duplicates, since they reference exactly the same point on the map. So no matter whether anyone searches "Stuttgart", "Stuttgart, Germany", "Stuttgart, Allemagne", "Stuttgart, Almanya", "Stuttgart, Alemania" etc, it should always compare the COORDINATES returned by Google Maps API, ie POINT(9.182932 48.775846), to what is in the cache table for that point. Or am I missing something completely obvious here? In fact, the address and address_passed columns are in fact technically redundant, except for human-readability purposes, are they not?
Referring to your message:
https://toolset.com/forums/topic/toolset-maps-search-not-showing-all-results-searching-for-certain-cities/page/2/#post-2565345
"It turns out that the formatted address the API returns for "Cologne, Germany" and "Köln, Alemania" is the English "Cologne, Germany" in both cases. Because Cologne was already added to the cache, when checking to see if Köln is already in the cache it thinks it is, so Köln does not get added."
I can find multiple counter examples in production, where English and non-English values are stored in both columns address and address_passed for the same point on the map.
Example Berlin:
SELECT *, AsWKT(`point`) AS `point`
FROM `wp_toolset_maps_address_cache`
WHERE `address_passed` like '%Berlin%'
returns
12049 Berlin, Deutschland
Alt-Tegel, 13507 Berlin, Deutschland .. and several more
Example Hamburg
SELECT *, AsWKT(`point`) AS `point`
FROM `wp_toolset_maps_address_cache`
WHERE `address_passed` like '%Hamburg%'
returns
20251 Hamburg, Deutschland
and several more examples with Munich. Germany/München, Deutschland
Sorry again for the long-winded message, but I want to be sure how Toolset Maps is working before I modify any of the plugins manually...
Kind regards
Simon