GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
"search" webservice. strange behavior with maxRows  XML
Forum Index -> General
Author Message
ingo



Joined: 12/08/2010 10:22:51
Messages: 18
Offline

Hi Marc

When I call this query:

http://api.geonames.org/search?q=oberkirch&countryBias=ch&isNameRequired=true&type=xml&lang=de&maxRows=1&featureClass=P&style=full&username=demo

then I get Oberkirch in Germany as result. But when I change (to e.g. 2) or remove the "maxRows" parameter then Oberkirch in Switzerland is the first result.

Shouldn't Oberkirch, CH the result too when I set maxRows=1 ?

Regards,
Ingo
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Hi Ingo

When exactly to you get the German result? The link you provided correctly returns the Swiss location at first position.

Marc

[WWW]
ingo



Joined: 12/08/2010 10:22:51
Messages: 18
Offline

Uhh, I'm sorry. Wrong domain:

I happens on the paid webservice:

api.geonames.org and ws.geonames.org give different results, too.

Is there a new subdomain for the paid webserive?

Regards,
Ingo
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Hmm, strange.

The premium domains do not change. They are anyhow hosted on other servers and they are a not affected by the load problems on the free servers.

Marc

[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Hi Ingo

The problem has disappeared with a new search index. We have not figured out what really caused the issue and have to monitor it. Let me know if you find other issues of the same type.

Best Regards

Marc

[WWW]
ingo



Joined: 12/08/2010 10:22:51
Messages: 18
Offline

Thanks!

Gruss,
Ingo
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Hi Ingo

While implementing the unit tests for this issue I have discovered that there is still something wrong. It is reproducable with the tests and will be fixed asap.

Best

Marc

Edit: The error has been identified and a fix is deployed on the api.geonames.org server. It will be deployed on the other servers with the next release.

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team