rhinds
rhinds

Reputation: 10043

GitHub API search optional keywords

I am trying to use the GitHub search repository API, but I want to use optional search keywords (e.g. include mutltiple terms and match on best match, rather than only match on repos that have all terms - so if i search java,node,javascript, if no project is marked as all three it returns repos with partial matches).

Not much is given away in the docs: http://developer.github.com/v3/search/#search-repositories

I have tried a few variations of delimiters (,+ ||) but they all seem to asses keywords as AND (API example is https://api.github.com/legacy/repos/search/java,groovy,spring)

Anyone else have experience of this?

Upvotes: 1

Views: 641

Answers (1)

Ian Stapleton Cordasco
Ian Stapleton Cordasco

Reputation: 28747

The API search functionality is from v2 of the API. At that time, GitHub search was really suboptimal and it has since significantly improved thanks to the awesome team over there. Unfortunately, that hasn't improved the API search so, that is still tied to other functionality.

Upvotes: 1

Related Questions