<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Using city,state in search - understanding results"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Using city,state in search - understanding results"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Using city,state in search - understanding results</title>
				<description><![CDATA[ I'm trying to understand some results that I'm getting back from the searchJSON endpoint. 

When using name and searching for 'corvallis', I get multiple results including the city of Corvallis, Oregon. However, if I search with a name of 'corvallis, oregon', I get 0 results (URLs below). 

If I switch to using 'portland,oregon', I can get results using name.

When I use q instead of name as the query parameter, I can then get results with 'corvallis, oregon'.

Can someone help me understand these results? Is it a bug, just a quirk of these particular cities, or a complete lack of understanding on my part?

Thanks,
Mike

URLs used (used demo user her for example purposes):

returns multiple results including the firste for corvallis, oregon: http://api.geonames.org/searchJSON?name=corvallis&username=demo

returns zero results: http://api.geonames.org/searchJSON?name=corvallis%2Coregon&username=demo

returns multiple results: http://api.geonames.org/searchJSON?q=corvallis%2Coregon&username=demo


]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3924.page#11658</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3924.page#11658</link>
				<pubDate><![CDATA[Tue, 3 Jul 2012 06:17:36]]> GMT</pubDate>
				<author><![CDATA[ mike.cbi]]></author>
			</item>
			<item>
				<title>Re:Using city,state in search - understanding results</title>
				<description><![CDATA[ the 'name' parameter only searches on the name of the location. Oregon is not part of the name, but the state. The 'q' parameter searches on all attributes (country, state, county, etc).

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3924.page#11659</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3924.page#11659</link>
				<pubDate><![CDATA[Tue, 3 Jul 2012 06:19:38]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Using city,state in search - understanding results</title>
				<description><![CDATA[ Marc,

That's kind of what I thought, but then it doesn't make sense that 'Portland,Oregon' returns the entry for Portland. The entry for that doesn't have Oregon in the name, either.

Why does 'portland,oregon' act differently than 'corvallis,oregon'? Both of these city names have cities in other states (portland,maine and corvallis,montana).

Thanks,
Mike]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3924.page#11661</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3924.page#11661</link>
				<pubDate><![CDATA[Wed, 4 Jul 2012 06:05:16]]> GMT</pubDate>
				<author><![CDATA[ mike.cbi]]></author>
			</item>
			<item>
				<title>Re:Using city,state in search - understanding results</title>
				<description><![CDATA[ Hi Mike

Portland has a Norwegian translation "Portland i Oregon". This is the altername name you find with your query for "Portland,Oregon".

Best Regards

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3924.page#11672</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3924.page#11672</link>
				<pubDate><![CDATA[Wed, 4 Jul 2012 06:39:51]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>