GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
WS error : maxClauseCount  XML
Forum Index -> General
Author Message
ybuch



Joined: 06/07/2009 15:24:11
Messages: 2
Offline

Hi,

When I execute the following request it returns an error :
Code:
 <geonames>
      <status message="maxClauseCount is set to 1024" value="12"/>
 </geonames>
 

http://ws.geonames.org/search?country=FR&adminCode1=A2&featureClass=P&name_startsWith=saint%20m

But interstingly enough it didn't happen for a very similar one:
http://ws.geonames.org/search?country=FR&adminCode1=A2&featureClass=P&name_startsWith=saint%20b

I found someone that had the same issue in an old post http://forum.geonames.org/gforum/posts/list/149.page but it seems that it's still happening.

Any ideas?
marc



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

There are too many records, so that the internal query rewritting to search for the places that start with the prefix hits a limit.

Marc

[WWW]
ybuch



Joined: 06/07/2009 15:24:11
Messages: 2
Offline

I'm not sure to understand how the internal query works.
But when I execute the following request it works perfectly even though the prefix is much smaller.
http://ws.geonames.org/search?country=FR&adminCode1=A2&featureClass=P&name_startsWith=s

And to me there should be more records found with the prefix 's' than the prefix 'saint m', am I right? How would you explain this?

Thanks
marc



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

small prefixes are hardcoded into the search index and longer prefixes are expanded into a wildcard query.
The index now includes longer prefixes than before, lets hope this will suffice.


Best

Marc

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