[DOCS-1322] Search for class in Java driver API links to older docs Created: 01/Apr/13 Updated: 10/May/13 Resolved: 10/May/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | drivers |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Critical - P2 |
| Reporter: | Jeffrey Yemin | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 40 weeks, 5 days ago |
| Description |
|
To reproduce
Expected results:
Actual results:
|
| Comments |
| Comment by Sam Kleinman (Inactive) [ 10/May/13 ] |
|
We're now generating better sitemaps, which should help. We're already adding nofollow, Post-processing seems particularly onerous and fragile given the ~200,000 pages of various province and generation methods. |
| Comment by Ed Costello [ 10/May/13 ] |
|
I can't fix this myself, but the canonical way to fix this permanently will be either to add <link rel="canonical" href="//api.mongodb.org/java/current/path/to/page"> to every page (either modifying javadoc or by post-processing) or remove the deprecated content. You could also try adding "noindex" to the "nofollow" for the deprecated content but I'm not convinced that would work. Also try submitting a removal request for the non-current content. |
| Comment by justin.dunham@10gen.com [ 09/May/13 ] |
|
Looks like 2.10.1 is the fourth result for Java DBObject, and yes, I see 1.3 is the top result. I haven't had any involvement with the docs search engine, though I do have admin access to it; what would you like me to do? It looks like Google's index of docs.mongodb.org is funny in general: |
| Comment by Jeffrey Yemin [ 09/May/13 ] |
|
"java dbobject" gives me a link to the 1.3 doc: http://api.mongodb.org/java/1.3/com/mongodb/DBObject.html so I don't think this is fixed. "java dbcollection" gives me the 2.10.1 docs though. I don't know what to make of that. |
| Comment by Ed Costello [ 08/Apr/13 ] |
|
This this is fixed for now but should continue to be monitored, the non–current versions of the API docs should drop out of the Google index or at least get demoted when compared to /current/ links. |
| Comment by Jeffrey Yemin [ 03/Apr/13 ] |
|
I did the search again this morning, and nothing at all from api.mongodg.org/java shows up in the results. |
| Comment by Ed Costello [ 01/Apr/13 ] |
|
This pull req https://github.com/mongodb/apidocs/pull/1 should address it from a linking/spidering perspective. I need to claim the site in webmaster tools to remove the deprecated docs. |