Working SEO note from this month.
Across three unrelated client sites, all of them with their own internal search function, Google has been indexing pages that should never have made it into the index. The search result pages themselves. URLs like /search?q=random+user+query that should have been noindex or at least canonicalized away from the first place they appeared.
None of these sites had a change in robots directives or canonical setup recently. The site code is essentially what it was earlier this year. In the last three months though, the number of indexed search result URLs on these three sites has climbed sharply.
On one of the sites Google is indexing over 4000 internal search result pages on an inventory of about 800 real product and category pages. Some of the search pages are starting to outrank the real pages for long tail queries, which is the part that bothers me most.
I have been going through the usual fixes. Confirming the robots directives are still returning the right responses, checking canonical tags across sample URLs, adding noindex via meta robots on the search template, and reviewing the URL parameter structure to see if Google might be treating something as a unique URL that it was ignoring before. None of it has cleared the indexed pages fast, though a few have started to drop out after a few weeks.
What I cannot explain is why Google started indexing these pages so eagerly in the first place, when the same sites behaved fine for years. Something changed on Google's side, not on the client sides.