Skip to content

Commit 9537dcc

Browse files
authored
Add fork:no and archived:no as search considerations
1 parent 12dbe9b commit 9537dcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/admin/search.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ By default, users cannot set a search timeout larger than 1 minute. Sourcegraph
1818
},
1919
```
2020

21+
### Forks and Archives
22+
23+
Sourcegraph search defaults to using `fork:no archived:no` as implied search values, excluding [forked](/code-search/queries/language#fork) and [archived](/code-search/queries/language#archived) repositories from search results. If you wish to include forked or achived repositories in your search results you must include the params `fork:yes` or `archived:yes`, respectively.
24+
2125
## Exclude files and directories
2226

2327
You can exclude files and directories from search by adding the file `.sourcegraph/ignore` to the root directory of your repository. Sourcegraph interprets each line in the _ignore_ file as a glob pattern. Files or directories matching those patterns will not show up in the search results.

0 commit comments

Comments
 (0)