Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 3eb05f4

Browse files
committed
Merge pull request #456 from github/doc-score-field
Add explanation for score field for search results
2 parents a9c328b + 6e978ac commit 3eb05f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/v3/search.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ search results so that you can find the item that best meets your needs. To
1818
satisfy that need, the GitHub Search API provides **up to 1,000 results for each
1919
search**.
2020

21+
### Ranking search results
22+
23+
Unless another sort option is provided as a query parameter, results are sorted
24+
by best match, as indicated by the `score` field for each item returned. This
25+
is a computed value representing the relevance of a item relative to the other
26+
items in the result set. Multiple factors are combined to boost the most
27+
relevant item to the top of the result list.
28+
2129
### Rate limit
2230

2331
The Search API has a custom rate limit. For requests using [Basic

0 commit comments

Comments
 (0)