Skip to content

Replace default search plugins with search-plus - #675

Merged
kenhys merged 1 commit into
fluent:1.0from
Watson1978:fix-search
Aug 10, 2026
Merged

Replace default search plugins with search-plus#675
kenhys merged 1 commit into
fluent:1.0from
Watson1978:fix-search

Conversation

@Watson1978

@Watson1978 Watson1978 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

The default search stack (search + lunr plugins) had two practical
problems on docs.fluentd.org:

  • The generated search_index.json is about 6.7 MB (837 KB gzipped)
    and is fetched and parsed eagerly on every page view. Queries typed
    before loading completes throw "Search has not been initialized"
    with no visible error, and the typed query is never re-executed
    once the index becomes ready. As a result the search box appears
    broken right after page load. Since the length of this window
    depends on network and cache timing, the behavior also looks
    inconsistent across browsers.

  • lunr applies an English stopword filter, so common words such as
    "for" always return "No results matching" even though they clearly
    appear in the documentation.

@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for fluentd-docs ready!

Name Link
🔨 Latest commit 5abde2b
🔍 Latest deploy log https://app.netlify.com/projects/fluentd-docs/deploys/6a796a8a571d990008a52cda
😎 Deploy Preview https://deploy-preview-675--fluentd-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Watson1978
Watson1978 requested a review from kenhys August 10, 2026 04:57
@kenhys

kenhys commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

What about honkit-plugin-search-plus?
https://github.com/dogatana/honkit-plugin-search-plus

@Watson1978 Watson1978 changed the title Replace default search plugins with search-pro-fixed Replace default search plugins with search-plus Aug 10, 2026
@Watson1978

Copy link
Copy Markdown
Contributor Author

Replaced to honkit-plugin-search-plus

Comment thread package.json Outdated
The default search stack (search + lunr plugins) had two practical
problems on docs.fluentd.org:

* The generated search_index.json is about 6.7 MB (837 KB gzipped)
  and is fetched and parsed eagerly on every page view. Queries typed
  before loading completes throw "Search has not been initialized"
  with no visible error, and the typed query is never re-executed
  once the index becomes ready. As a result the search box appears
  broken right after page load. Since the length of this window
  depends on network and cache timing, the behavior also looks
  inconsistent across browsers.

* lunr applies an English stopword filter, so common words such as
  "for" always return "No results matching" even though they clearly
  appear in the documentation.

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@kenhys
kenhys merged commit ea3ef0d into fluent:1.0 Aug 10, 2026
6 checks passed
@Watson1978
Watson1978 deleted the fix-search branch August 10, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants