This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f3b959985e [fix] stop search results from leaking across doc versions 
(#3655)
1f3b959985e is described below

commit 1f3b959985e95614eaa900b0a760100ab41d76ad
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Fri May 15 17:01:53 2026 -0700

    [fix] stop search results from leaking across doc versions (#3655)
    
    Disable useAllContextsWithNoSearchContext so the root search-index.json
    no longer aggregates docs-next + every versioned docs/* bucket. When
    runtime context detection misses (e.g. on no-context pages or transient
    SPA state) the worker now falls back to a docs-free root index instead
    of returning v4.x results on /docs-next pages.
    
    Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
---
 docusaurus.config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 45625c6f6a6..74085abe24b 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -362,7 +362,7 @@ const config = {
                 searchBarShortcutHint: true,
                 searchResultLimits: 100,
                 searchContextByPaths: ['docs-next', 'docs'],
-                useAllContextsWithNoSearchContext: true,
+                useAllContextsWithNoSearchContext: false,
             },
         ],
     ],


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to