-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in Autocomplete sorting #1327
Comments
Hey Nick, We know of lots of examples where this makes sense: San Francisco, Barcelona, Tokyo, and Berlin are all cities within a region of the same name (either with the same boundaries or encompassing a bigger area), and in all cases most people refer to the city over the region without further clarification. In the states, someone looking specifically for a county would usually say "Hobart county" as you have done. Many counties have alternate names in WOF to handle this, although I'm sure some don't. Do you think its very common in Australia where a placename without any further qualifications would refer to a county over a city in that county that shares a name? If so we'll have to figure out something, but it could be difficult considering how deep this assumption is built into Pelias. |
Hey @orangejulius That sounds like that's it - the broader regions are being deduplicated out. In Australia the word "county" is never used. We don't have counties, the official equivelant term is Local Government Area (LGA) but that's not something a end user would ever specify in a search Since autocomplete is supposed to give a list of options, not try and get the most exact match, I think it should be disabled for autocomplete but left enabled for search. At the very least if it was attached to a flag that allows that behaviour to be configured. The results we were getting previously were great, along the lines of: |
Hey Nick, The reason we undertook the changes to improve deduping is that based on reports from many customers and users, people get very confused when they see duplicate results from autocomplete. So one of the first things we would have to do is ensure the labels are distinct and clear for the different results. We've talked about doing this dynamically since 2016 in pelias/labels#8. We might need something that fancy, or we might just need to alter the names for records that we would not want deduped. The deduplication code already treats records as different if their names are different, so that would actually be very simple. For example, the Then by looking at a combination of the name, whether the records geometry is coterminous with another similarly named record, and perhaps a bit of configuration for preferences in different countries or regions, we can make Pelias do the right thing. |
@orangejulius do you know which commit made this change? I'd like to undo it on my end until a better permanent solution can be found. |
@NickStallman the changes were merged in #1230. I'd suggest avoiding reverting the entire PR if you can, but you might have a look at the list of layers to dedupe created by that PR and trying to modify it to suit your needs. |
Perfect thanks @orangejulius. Commenting out localadmin, county and region has done the trick. A long term solution could be passing postProc.dedupe(), a flag for the autocomplete route to disable such aggressive deduping, but leaving the behaviour intact for search queries? |
I've just performed a full rebuild and update and I've found a regression in the ordering of autocomplete queries.
E.g. https://pelias.github.io/compare/#/v1/autocomplete%3Fboundary.country=AU&layers=locality%252Cpostalcode%252Clocaladmin%252Cregion%252Ccounty&text=hobart
This query is asking for results on the layers: locality, postalcode, localadmin, region, county
However only localities are being returned. The locality is the least broad layer in the list so I would have expected it to be last.
Removing it from the list gives this: https://pelias.github.io/compare/#/v1/autocomplete%3Fboundary.country=AU&layers=postalcode%252Clocaladmin%252Cregion%252Ccounty&text=hobart
Which is similar, now all we get is localadmin.
Removing localadmin and we finally get the Hobart county.
https://pelias.github.io/compare/#/v1/autocomplete%3Fboundary.country=AU&layers=county%252Cregion%252Cpostalcode&text=hobart
It's like the layer heirachy is upside down when sorting results with the most specific results first, not the broadest results first.
This was working correctly with my last update in April.
The text was updated successfully, but these errors were encountered: