From bf9588061a3f948f6a0acb3abd953d50e9bfbf6f Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 28 Feb 2023 15:10:44 +0000
Subject: [PATCH] allow site owners to enable global-search #104

---
 exampleSite/content/docs/compose/search.md |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/exampleSite/content/docs/compose/search.md b/exampleSite/content/docs/compose/search.md
index 6de7c83..0d038a5 100644
--- a/exampleSite/content/docs/compose/search.md
+++ b/exampleSite/content/docs/compose/search.md
@@ -17,7 +17,7 @@
 # search
 [search]
 on = true
-# Site logo
+global = false
 [search.algolia]
 enable = false # if false search will default to fusejs
 id = "Q40WQQX84U" # Application ID
@@ -29,6 +29,17 @@
 
 Algolia will require you to build and host your index. For those using Github, this theme ships with an [algolia github action](/docs/compose/github-actions/#algolia-ci).
 
+By default, search will return results from the current content section. Searches from the top level section e.g the homepage, will return global results. This way, the results are scoped. You can override this behaviour using this setting
+
+```toml
+...
+[search]
+...
+global = false # turn to `true` to enable global search
+...
+```
+
+
 At the time of this writing, search on these theme takes either of this forms:
 
 ### 1. Passive search

--
Gitblit v1.10.0