GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Wikipedia search inconsistent  XML
Forum Index -> General
Author Message
j1mmyd



Joined: 08/04/2009 21:53:42
Messages: 1
Offline

Hello,

I am having trouble with the wikipediaSearch service. The first result returned for the string "http://ws.geonames.org/wikipediaSearch?q=New%20York%20City" is for the New York - New York hotel and casino in Las Vegas. The first result returned for a geonames homepage search or a wikipedia web page search is for New York City. I have similar problems with other locations (Denver%20Colorado, London%20England, etc.).

What's up with that? How can I force the service to return the correct article? Should I format the query differently?

Thanks,
Jim
marc



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

Hi Jim

It seems that the population of the city does not account enough for the relevance in the search engine result position. I will put it on the nice-to-have list and find an improvement when the time allows.

You could try to use the 'title' parameter to search only in the title.

Best

Marc

[WWW]
lorp



Joined: 07/02/2009 16:41:08
Messages: 4
Offline

On my nice-to-have list, higher up than a population check, is to check if the title of the Wikipedia page (or one of its redirects) matches the search query exactly. If so, put it first in the results list.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team