Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Relevance sort order #2845

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Relevance sort order #2845

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: michiel[at]ict4schools.nl
[Submitted to the original trac issue database at 10.27pm, Monday, 29th March 2010]

The order of the results are not ordered correctly by relevance.

Searching for example on:
Leliestraat 31, Zwolle (http://nominatim.openstreetmap.org/search?q=Leliestraat+31%2C+Zwolle&viewbox=-225%2C82.34%2C225%2C-74.45)

Gives the following results:

Leliestraat, Hattem, Berghuizen, Zwolle, 8051EH, Gelderland, Nederland
Leliestraat, Rouveen, Staphorst, 7954, Overijssel, Nederland
Leliestraat, Zwolle, Schelle, 8012, Overijssel, Nederland
Leliestraat, Zwolle, Schelle, 8013, Overijssel, Nederland

Because Hattem is a city besides Zwolle, it is in the same region. So that's why Hattem is also included in this results. Now this is no problem, but because Zwolle is a city in itself, Zwolle should be higher in the order then Hattem.

So I suggest to put in the sorting algoritm, a relevance options. Maybe on the client side instead of the database side, because tsearch doesn't support that currently.

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 10.31am, Tuesday, 30th March 2010]

Replying to [ticket:2845 michiel[at]ict4schools.nl]:

So I suggest to put in the sorting algoritm, a relevance options. Maybe on the client side instead of the database side, because tsearch doesn't support that currently.

See #2681

Version 2 of Nominatim already has this fixed but isn't ready for deployment just yet.

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

No branches or pull requests

1 participant