Opened 9 years ago

Closed 9 years ago

#2845 closed enhancement (duplicate)

Relevance sort order

Reported by: michiel@… Owned by: openstreetmap@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

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.

Change History (1)

comment:1 in reply to:  description Changed 9 years ago by twain

Resolution: duplicate
Status: newclosed

Replying to michiel@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.

Note: See TracTickets for help on using tickets.