Google search for 'scala' results, at least in some locations, highlights a moderate-quality and unflattering user question thread right under the main language page
Closed this issue · 9 comments
The problem reproduces for me. It links to https://users.scala-lang.org/t/why-scala-is-not-popular/9687, perhaps that link was shared and became popular on some platform? Here are all forum threads sorted by view count, the one in question is at position 9 https://users.scala-lang.org/latest?ascending=false&order=views.
Add
<meta name="last-modified" content="2025-01-13"> to header or
add to sitemap.xml with
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.scala-lang.org</loc>
<lastmod>2025-01-13</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>or refresh with google search console.
We could disallow this page in robots.txt to remove it from google index. But I'm not sure it's the best approach.
Based on the advice at:
- https://meta.discourse.org/t/how-to-stop-search-engines-from-indexing-a-particular-community-topic/287982
- https://meta.discourse.org/t/need-to-find-a-solution-to-block-indexing-topics-from-a-category/338813/2
I did the following:
- I used the admin "Unlist" button on the thread in question, which should prevent it from being found when people use Discourse's own search functionality.
- Created a new category called "De-Indexed" and made the category visible only to logged-in users (trust level 0 or higher)
- Reassigned the topic in question to the new category
I confirmed that when you visit the site when you're not logged in, the category is invisible and if you try to visit the topic directly you get a "Oops! That page doesn’t exist or is private." page.
So very likely this should take care of it, but I'm leaving the ticket open until we've confirmed that the search results change in the next re-indexing.
@fsalvi do you have access to the Google Search Console for scala-lang.org? Would you be able to follow the instructions at https://support.google.com/webmasters/answer/9689846?hl=en to fast-track the removal of this URL from their index?
Yes. I did it. I don't know how long it will take...



