daviddengcn / gcse

Project for Go Search, a search engine for finding popular and relevant packages.
http://go-search.org/
BSD 2-Clause "Simplified" License
277 stars 45 forks source link

Search API #14

Closed Kapeli closed 10 years ago

Kapeli commented 10 years ago

There doesn't seem to be a Search API documented at http://go-search.org/infoapi. Is this available in any way? I'd like to enter the same query you'd enter at http://go-search.org/ and get the results as JSON.

daviddengcn commented 10 years ago

No, it is not support yet. But I'm open to do it.

Can you describe a little bit about how you'll use it so that I can decide how to design the API here.

Kapeli commented 10 years ago

I'm going to use it with Dash as a way for users to find Go packages and install docs for them (from godoc.org). Basically I want something like http://api.godoc.org/search?q=go-imap - you send a query and you get sorted results in return. A way to limit the number of results to be returned would be nice too. Oh and would be great if the results would also include the godoc.org path.

daviddengcn commented 10 years ago

Cool, got it.

daviddengcn commented 10 years ago

Online now, see introduction at(bottom part): http://go-search.org/infoapi