api.dartlang.org should allow searching by URL #65
Description
From [email protected] on March 27, 2014 01:58:08
What steps will reproduce the problem? 1. Go to api.dartlang.org and search for "foo"
2. Notice the URL of the resulting page What is the expected output? What do you see instead? 1. The URL should contain the string "foo" so it can be bookmarked without loss of the search query; and more importantly.
2. There should exist an api.dartlang.org URL that can be used with any search query to get the results of that query. What version of the product are you using? On what operating system? https://api.dartlang.org/apidocs/channels/stable/ as of 2014-03-26. Please provide any additional information below. 1. Having a search URL would allow setting up a custom Dart API search engine in Chrome ( https://support.google.com/chrome/answer/95653?hl=en ) so Dart APIs can be searched directly from the Chrome omnibox with queries like "dart foo". Without such a URL, it will never be possible to search Dart APIs without first going to api.dartlang.org.
- This is related to issue 17386 and issue 17500 in that a clean api.dartlang.org URL scheme (17386) should support search-by-URL (this issue) and will also help Google and other search engines crawl api.dartlang.org. There is some irony to the fact that api.dartlang.org is not easily crawlable and searchable when a major use of Dart is to write web apps that should be crawlable and searchable :-). It seems like making this work for api.dartlang.org would be a good proof of concept that the Dart toolchain is a good tool for this purpose.
- It seems like a URL such as https://api.dartlang.org/stable/dart-dom/element/footer?q=foo would be pretty natural for the results of the search above, with https://api.dartlang.org/stable?q=foo being a natural search entry point which would redirect to the dart-dom/element/footer URL or to whatever the most appropriate result is at the time the search is performed.
Original issue: http://code.google.com/p/dart/issues/detail?id=17848