From 9537dccfbe70de9305d43ea2a01a0be9a8be9c55 Mon Sep 17 00:00:00 2001 From: Noah Berman <38916274+noah-berman@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:43:47 -0400 Subject: [PATCH] Add fork:no and archived:no as search considerations --- docs/admin/search.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/admin/search.mdx b/docs/admin/search.mdx index 867f6a53e..2779912ab 100644 --- a/docs/admin/search.mdx +++ b/docs/admin/search.mdx @@ -18,6 +18,10 @@ By default, users cannot set a search timeout larger than 1 minute. Sourcegraph }, ``` +### Forks and Archives + +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. + ## Exclude files and directories 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.