GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How does maxRows work?  XML
Forum Index -> General
Author Message
Richard Tobin



Joined: 06/02/2008 16:22:48
Messages: 7
Offline

If I limit the number of results returned for a search with maxRows, for example

http://ws.geonames.org/search?maxRows=20&name_equals=Inverness

how are the 20 results chosen? There are more than 20 places whose names are precisely "Inverness".
marc



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

The maxRows does not affect the sorting. It just returned the first n rows as sorted by the full text search engine. The sort function depends on a lot of factors like: the name (term frequency/inverse document frequency), feature code, population, country, etc.

Best

Marc

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