zkim/clojuredocs — Issue #44: Search API mixes 1.2 and 1.3 results indistinguishably
Author: jafingerhut
Created: 2011-12-04 22:07:51+00:00
State: open

Example of search API URL:

http://api.clojuredocs.org/search/pmap

Results:

[
{"id":1579,"name":"zipmap","ns":"clojure.core","url":"http://clojuredocs.org/v/1579"},
{"id":1952,"name":"pmap","ns":"clojure.core","url":"http://clojuredocs.org/v/1952"},
{"id":5659,"name":"pmap","ns":"clojure.core","url":"http://clojuredocs.org/v/5659"},
{"id":5854,"name":"zipmap","ns":"clojure.core","url":"http://clojuredocs.org/v/5854"}
]

One of the pmap results is the Clojure 1.2 page for pmap, and the other is for Clojure 1.3, but there is no way to tell from the search result which is which.

Would it be difficult to add something like a key :lib_version with value "1.2.0" or "1.3.0" in the maps of the search result, similar to how the examples API returns?