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 filter  XML
Forum Index -> General
Author Message
Anonymous



Hi,

I'm using the webservice API to perform full text search, but having some difficulties in getting the result that 'contains' the whole keyword.

For example:
http://ws.geonames.org/search?name=malaysia
Will return 845 hits which include Mỹ Tho of Vietnam in the result list. I want to filter this out. Using name_equals will help in this case: http://ws.geonames.org/search?name_equals=malaysia returns 4 hits.

However if the name contains 2 words, name_equals will not find it. For example: http://ws.geonames.org/search?name_equals=batam returns 2 hits.

While http://ws.geonames.org/search?name=batam returns 4 hits. In this case, "Pulau Batam" is the result I wanted and I will not get it with name_equals filter.

Is there away to achive both of these?

PS. I don't know which country the user is searching, so cannot use the country filter.

Thanks.
jay
marc



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

Hi Jay

This is a bug. You should not get "Mỹ Tho" searching with name=malaysia. We will have to fix this bug first.

Marc

[WWW]
marc



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

Hi Jay

The bug is fixed the search with name=malaysia now returns eight rows. It was a problem with the country name aliaser.

Regards

Marc

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