javadoc google search url is wrong now

Description

Per https://ask.clojure.org/index.php/9752/change-behavior-default-javadoc-feeling-lucky-google-change

clojure.java.javadoc/javadoc will attempt to search known javadoc sources but falls back to a google search using the clojure.java.javadoc/*feeling-lucky-url*, however this url has changed since this code was originally written (the goal here is to both search and immediately open the url).

This code will trigger the browser to open https://www.google.com/search?btnI=I%27m%20Feeling%20Lucky&q=allinurl:com/fasterxml/jackson/core/JsonParser.html which (in the past) would search and go to the first result, but this no longer works.

Cause: Google doesn't do this anymore (broke lots of people). See: https://support.google.com/websearch/thread/15794018?hl=en

Alternatives:

  1. Stop supporting this (might be a security issue too)

  2. Find an alternative google url (not sure there is one though)

  3. Use DuckDuckGo alternative: https://duckduckgo.com/?q=%5C

The last can be tested by rebinding the dynvar:

which should open the right page in the browser (for example: https://fasterxml.github.io/jackson-core/javadoc/2.6/com/fasterxml/jackson/core/JsonParser.html).

Environment

None

Assignee

Unassigned

Reporter

Alex Miller

Labels

Approval

Triaged

Patch

None

Affects versions

Priority

Minor