| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 25/08/2010 17:01:12
|
felix
Joined: 25/08/2010 16:58:20
Messages: 3
Offline
|
Hello,
could someone clarify how the results are ordered when requesting wikipedia entries with a bounding box? If the number of entries exceeds maxRows, will only those entries nearest to the center of the bbox be returned? Or is some sort of relevance factor used (e.g. cities, churches, museums first; then schools pubs etc)?
I would greatly appreciate some clarification.
Yours,
Felix
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2010 09:02:32
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
Felix
It is sorted by some kind of relevance. The types are not very reliable so the relevance needs to be based on other factors like length of article, number of links etc.
Best
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2010 11:42:44
|
felix
Joined: 25/08/2010 16:58:20
Messages: 3
Offline
|
Hello Marc,
thanks for the clarification. That is the sorting I was hoping for. However, I wasn't too sure as the Cologne Cathedral often does not make the cut when viewing the articles around Cologne in German. I suspect the article about the Cologne Cathedral to be among the largest and most relevant ones. Other articles that are less important and shorter are included.
Is that a problem specific to Cologne?
Yours,
Felix
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/08/2010 12:05:13
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
Felix
You are right this entry was having and empty relevance. I have updated the db with a new relevance that covers all records. Let me know if the result is fine with you.
Best
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 31/08/2010 16:23:18
|
felix
Joined: 25/08/2010 16:58:20
Messages: 3
Offline
|
Thanks form looking into this. Unfortunately it seems that this has not been fixed for the german version of the entry.
Could you look at this again?
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 01/09/2010 11:58:33
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
You are right, I have found another issue. For performance reasons the result was not sorted under some circumstances. I have improved the query so that it will be better sorted, though not perfect. There might still be situations where the sort will miss some more relevant articles.
Marc
|
 |
|
|
 |
|
|