Skip to content

Commit cf3c537

Browse files
committed
Docs for personalized search rankings
1 parent 684aefb commit cf3c537

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/code-search/features.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,32 @@ You get the following improvements:
9595
- **Reworked fuzzy finder ⌘K**: Find files and symbols quickly and easily with our whole new fuzzy finder
9696
- **File actions**: Like open in editor and open on code host
9797

98+
## Personalized search ranking
99+
100+
Sourcegraph Enterprise users can get more personalized and better-ranked search results in the search bar for their codebases. With this feature, you get:
101+
102+
- Improved ranking for keyword searches like "data router". This capability is enabled by default and cannot be configured
103+
- Personalized ranking, specifically boosted results from repos you recently contributed to. This is controlled by the setting `experimentalFeatures.boostRelevantRepositories`
104+
105+
These boosted results from your recently contributed repositories make finding the code you care about easier.
106+
107+
The personalized search ranking works best if you have large codebases, especially for new users who may otherwise get overwhelmed by results from unfamiliar or irrelevant repositories.
108+
109+
Personalized search ranking is enabled by default, but you can disable it from your settings via:
110+
111+
```json
112+
experimentalFeatures: {
113+
boostRelevantRepositories: false
114+
}
115+
```
116+
117+
Here is an example of search results with personalized search ranking enabled:
118+
119+
![search-ranking-enabled](https://storage.googleapis.com/sourcegraph-assets/Docs/personalized-search-rankings.png)
120+
121+
As you can see, the results are now ranked based on their relevance to the query, and the results from repositories you've recently contributed to are boosted.
122+
123+
98124
## Other search tips
99125

100126
- When viewing a file or directory, press the `y` key to expand the URL to its canonical form (with the full 40-character Git commit SHA).

0 commit comments

Comments
 (0)