Skip to content
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

Address search regression on Pelias Query #690

Closed
antoine-de opened this issue Nov 27, 2017 · 6 comments
Closed

Address search regression on Pelias Query #690

antoine-de opened this issue Nov 27, 2017 · 6 comments

Comments

@antoine-de
Copy link

antoine-de commented Nov 27, 2017

Hey team!

I was using your awesome geocoding engine when I noticed something interesting.

Here's what I did 😇

I set up a pelias instance on france and I got strange regression on the last update (I nailed down the regression is on pelias/query 9.4 version

The latest version makes it more difficult to find addresses.

For example on a simple query (it's a french address)
http ":4000/v1/search?text=19 Rue Denis Cordonnier Aniche"

If I use the 9.3 version of pelias/query I got the address I want:

 "label": "19 Rue Denis Cordonnier, Aniche, France",               
 "layer": "address",

and if I just upgrade the pelias/query to 9.4 version only the street is found (since the address lookup it's the street fallback that works):

"label": "Rue Denis Cordonnier, Aniche, France",
"layer": "street",

Here's what I think could be improved 🏆

I think the unit search feature can be improved by searching on the unit only if libpostal parsed one.

I think we should check that a unit has been parsed before calling createAddressShould:
https://github.com/pelias/query/blob/master/layout/AddressesUsingIdsQuery.js#L101

Just like how it's done in StructuredFallbackQuery.

The fix seems quite easy and I'm willing to do it if you agree with the proposed solution.

Note: I cannot reproduce it on the compare site, but it might be because the pelias query version has not been upgraded yet. How can I know which pelias exact version has been deployed ?

@antoine-de antoine-de changed the title Address search regression Address search regression on Pelias Query Nov 27, 2017
@missinglink
Copy link
Member

possibly related? #685

cc/ @sweco-semhul

@missinglink
Copy link
Member

missinglink commented Nov 27, 2017

hi @antoine-de, thanks for the bug report.

If it's not too much work, could you please open a PR with the proposed code change and we can then discuss it on the PR?

regarding mapzen search, our production environment is running the production branch from each repo and our 'prodbuild' servers are usually running the staging branches.

@missinglink
Copy link
Member

If you have some good test data from France that we are missing, please add it to the https://github.com/pelias/acceptance-tests repo.

These tests are run against the prodbuild environment before it is promoted to production, so it will ensure that we do not regress in the future.

Thanks!

@sweco-semhul
Copy link

@antoine-de yes it seems to be related to the changes made by me to add unit.

I say changing https://github.com/pelias/query/blob/master/layout/AddressesUsingIdsQuery.js#L101 to only search with unit if parsed would probably fix this.

antoine-de added a commit to antoine-de/query that referenced this issue Nov 27, 2017
@antoine-de
Copy link
Author

I opened the query's PR

I don't think it's related to #685 because the production branch is using query 9.1.0 and the staging 9.1.1 so there should be no problem in production.

For nice acceptance tests on french data I often use https://github.com/geocoders/geocoder-tester but it's not trivial to run them on Pelias (we've developed a pelias proxy to run them).

If you want I can add some other tests on the acceptance-tests repository. Do I create a new file for french data ?

@antoine-de
Copy link
Author

I close this issue since it has been fixed by pelias/query#78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants