NATION

PASSWORD

Nation Search

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Nation Search

Postby Sedgistan » Wed Sep 16, 2009 9:34 am

The nation search was changed at some time so that if you don't get an exact match, only 10 nations are displayed. This is a bit of a nuisance, as there's no guarantee that the nation(s) that you are looking for is amongst those 10. Is it possible to have it changed, so it works like the region search - ie displays all matching results, if necessary over several pages?

User avatar
Evil Wolf
Minister
 
Posts: 2412
Founded: Apr 28, 2005
Father Knows Best State

Postby Evil Wolf » Wed Sep 16, 2009 12:44 pm

I agree, and I've noticed that it used to be that partial entries used to give you pages of results, just like it still does when you enter partials into the regional field. This ended a few months ago, I think about the same time the Liberation Proposals came into effect, not that the two events are related, just thinking someone dabbled in the code while they were at it.

I enter "A" and press "find region" and I get 315 pages of results, from "0000000000 Anarchy" to "ZZZZ Technotopia". Excessive? Maybe, but if I were to narrow down the entry I narrow down the results. Given that there are far more nation in Nationstates than regions, shouldn't it be the same for the nation search since more numbers means its harder to find nations? Just a thought.
It's ok! You can trust me! I've been Commended!

Kryozerkia wrote:In the good old days raiding was illegal
Crazy Girl wrote:Invading was never illegal
[violet] wrote:There is supposed to be an invasion game.

Mallorea and Riva should be a Game Moderator Game Administrator.

User avatar
Charlotte Ryberg
The Muse of the Westcountry
 
Posts: 15007
Founded: Mar 14, 2007
Civil Rights Lovefest

Postby Charlotte Ryberg » Wed Sep 16, 2009 12:52 pm

To be honest I would not mind the nation search being like the region search because it is likely that there would be lots of nations with, something like "north" in their name or some with various shortened words such as "so" (forming part of words like "solar" or "south").

User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Mon Sep 21, 2009 5:35 am

Bump

User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Sat Oct 03, 2009 4:07 pm

Bumped for [violet]'s attention.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sat Oct 03, 2009 7:44 pm

I'm a little reluctant to do this because it can hit performance. Currently, the game gets to stop examining nation names after 10 matches, so any given search might require only a few hundred or thousand names to be examined. To figure out how many results there are in total, the game needs to examine all 50,000 nation names every single time someone searches. Which is not terrible, but not something I want to encourage unless there's a good reason for it. Can you give me some examples of frustrations you've had with the current service?

User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Sat Oct 03, 2009 8:09 pm

Well one example would be that I sometimes search 'sedg' to see if anyone has created a nation which imitates my name (it has happened - sedginistan is one). Since I happen to have quite a lot of puppets with that in their name, not all of them are displayed.

Other than that, its either looking for another nation of someone who uses a relatively common word/sequence of letters in their name, or searching for a nation of which I only remember part of its name.

If you don't want it searching all the nations, then a larger limit (20?) would be an improvement.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Almander, Autumn Meadows, Bormiar, Cassiopeus, Ex-Machina 374, Free Jovian Republic, Heromerland, Hyperwolf, IC-Water, Imperial Mansion of Japan, Kractero, Morgundy, Riemstagrad, The Provincial Union of the Pacific, Three Galaxies, Valentine Z, Wolfana

Advertisement

Remove ads