Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

CCTLDs are useful for searching.

I fairly often add "site:dk" to my Google searches. I know I'm excluding Danish sites using generic TLDs, or using Danish domain hacks¹, but it's usually good enough to get past the irrelevant results I didn't want.

Search engines can also use the CCTLD as part of the signalling -- a .dk site is almost certainly related to Denmark.

That doesn't work for .to, .nu, .cc and so on. (.IO is unusual, the only genuinely linked site I can see is the government's, at https://biot.gov.io/ ) Google has a list of CCTLDs it considers "generic"², I don't know if they have workarounds for sites actually linked to these places.

¹ "A/S" is a type of company registration, so American Samoa ".as" is used, "nu" means "now" so there's some use of Niue ".nu".

² https://support.google.com/webmasters/answer/182192#generic-...



Why not just lang:ja


It works for Japan I guess, but it's often more important (well, to me at least) to discriminate by country than by language.


I use it when I want a recipe using local (Danish/European) measures and ingredients, or restaurants in this city, or a relevant government or official website.

Many of these have an English version in Denmark, which I understand much more easily.

Not-Denmark-but-English results are most of what I'm trying to exclude -- recipes full of sugar with measurements in Fahren-cups, restaurants in the three Copenhagens in North America, etc.


Does this work? Seems to work in some searches and in some others it treats "lang" as a search term instead.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: