[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

  1. Go to docs.mongodb.org
  2. Search for DBCollection

Expected results:

  • First link should be to api.mongodb.org/java/current/com/mongodb/DBCollection.html

Actual results:

  • Fist link is to api.mongodb.org/java/ 2.5 /com/mongodb/DBCollection.html
    [note by epc intentionally broke link above because it's serving to give google juice to that link since DOCS is public & indexed by Google]


 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:

https://www.google.com/search?hl=en&tbo=d&output=search&sclient=psy-ab&q=java+dboject&btnG=&oq=&gs_l=&pbx=1#hl=en&q=java+dbobject&spell=1&sa=X&ei=f_KLUbH7F6-w4AOGu4DgBw&ved=0CC0QvwUoAA&bav=on.2,or.r_cp.r_qf.&bvm=bv.46340616,d.dmg&fp=2afb10e2636696a0&biw=1235&bih=701

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.

Generated at Thu Feb 08 07:40:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.