Skip to content

Document Hunspell hot-reload and ref_path refactor for 3.7#12486

Merged
kolchfa-aws merged 4 commits into
opensearch-project:mainfrom
shayush622:docs/hunspell-hot-reload
Jun 3, 2026
Merged

Document Hunspell hot-reload and ref_path refactor for 3.7#12486
kolchfa-aws merged 4 commits into
opensearch-project:mainfrom
shayush622:docs/hunspell-hot-reload

Conversation

@shayush622

Copy link
Copy Markdown
Contributor

Description

Updates the Hunspell token filter documentation to reflect three changes
landing in OpenSearch 3.7:

  1. ref_path path-resolution refactor (opensearch-project/OpenSearch#21516) — ref_path now resolves directly under <OS_PATH_CONF> (was
    <OS_PATH_CONF>/analyzers/) and accepts forward slashes for nested paths.
  2. Hot-reload support for Hunspell dictionaries (opensearch-project/OpenSearch#21559) — adds a new updateable parameter on the filter; when
    true, the filter runs in search-time analysis mode so its dictionary can be reloaded without a node restart.
  3. reload_cached_resources query parameter on the Refresh search analyzer API (opensearch-project/index-management#1638) — triggers
    in-place reload of cached resources (such as Hunspell dictionary files) from disk.

Changes in this PR:

_analyzers/token-filters/hunspell.md

  • Update ref_path description: new path resolution, allowed characters now include forward slashes, and a 3.6 → 3.7 upgrade note (prefix existing values with analyzers/ to preserve the previous layout).
  • Update dictionary description for the same path change.
  • Add the new updateable parameter row.
  • Rename Package-based dictionary loading to Custom dictionary loading with ref_path; refresh the directory tree, prose, and JSON examples to use the new layout.
  • Add a new Hot-reloading Hunspell dictionaries section covering prerequisites (updateable: true), the two-step workflow, default-vs-true behavior of reload_cached_resources, and a complete
    index-creation example using the filter as a search_analyzer.

_im-plugin/refresh-analyzer.md

  • Add a Query parameters section documenting the new reload_cached_resources boolean, with a cross-link back to the Hunspell page.

Issues Resolved

N/A — tracking the upstream PRs above.

Version

3.7

Frontend features

N/A — no OpenSearch Dashboards UI involved.

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of
    Origin
    .

Update the Hunspell token filter docs to reflect the hot-reload support
and ref_path path-resolution change landing in OpenSearch 3.7
(opensearch-project/OpenSearch#21516, #21559 and
opensearch-project/index-management#1638):

- Add the new `updateable` filter parameter.
- Update `ref_path` to resolve under `<OS_PATH_CONF>` directly (was
  `<OS_PATH_CONF>/analyzers/`) and allow forward slashes for nested
  paths; add an upgrade note for users coming from 3.6.
- Rename "Package-based dictionary loading" to "Custom dictionary
  loading with ref_path" and refresh examples to use the new layout.
- Add a "Hot-reloading Hunspell dictionaries" section covering the
  `updateable` + `_refresh_search_analyzers?reload_cached_resources=true`
  workflow.
- Document the new `reload_cached_resources` query parameter on the
  Refresh search analyzer API page.

Signed-off-by: shayush622 <ayush5267@gmail.com>
Copilot AI review requested due to automatic review settings May 29, 2026 05:50
@github-actions github-actions Bot added the Tech review PR: Tech review in progress label May 29, 2026
@github-actions

Copy link
Copy Markdown

Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Merged.

Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer.

When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates OpenSearch documentation to describe new/changed analyzer refresh behavior and Hunspell dictionary loading/reloading options.

Changes:

  • Documented reload_cached_resources query parameter for the Refresh search analyzer API.
  • Updated Hunspell ref_path semantics and examples to reflect the 3.7 path resolution change.
  • Added Hunspell hot-reload documentation via updateable + Refresh search analyzer API.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
_im-plugin/refresh-analyzer.md Adds query parameter documentation for controlling cached resource reload behavior.
_analyzers/token-filters/hunspell.md Updates ref_path behavior/docs and adds hot-reload guidance and new updateable parameter documentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread _im-plugin/refresh-analyzer.md Outdated

Parameter | Data type | Description
:--- | :--- | :---
`reload_cached_resources` | Boolean | When set to `true`, in-place reloads cached resources for token filters that load files from disk (for example, the [`hunspell`]({{site.url}}{{site.baseurl}}/analyzers/token-filters/hunspell/) filter's dictionary files). When `false` (the default), analyzer factories are rebuilt but cached resources are reused. **Introduced 3.7.**
Comment thread _analyzers/token-filters/hunspell.md
Comment thread _analyzers/token-filters/hunspell.md
@kolchfa-aws kolchfa-aws added Doc review PR: Doc review in progress backport 3.6 release-notes PR: Include this PR in the automated release notes v3.7.0 and removed Tech review PR: Tech review in progress backport 3.6 labels May 29, 2026
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
Comment thread _im-plugin/refresh-analyzer.md Outdated
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

@kolchfa-aws kolchfa-aws left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @shayush622! Doc review complete and changes applied. LGTM.

Comment thread _analyzers/token-filters/hunspell.md Outdated
Comment thread _analyzers/token-filters/hunspell.md Outdated
Comment thread _analyzers/token-filters/hunspell.md Outdated
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
@shayush622

Copy link
Copy Markdown
Contributor Author

Thank you, @kolchfa-aws for the review :)

@kolchfa-aws kolchfa-aws merged commit e10ab48 into opensearch-project:main Jun 3, 2026
5 checks passed
@shayush622 shayush622 deleted the docs/hunspell-hot-reload branch June 3, 2026 15:05
aryasoni98 pushed a commit to aryasoni98/documentation-website that referenced this pull request Jun 29, 2026
…h-project#12486)

* Document Hunspell hot-reload and ref_path refactor for 3.7

Update the Hunspell token filter docs to reflect the hot-reload support
and ref_path path-resolution change landing in OpenSearch 3.7
(opensearch-project/OpenSearch#21516, #21559 and
opensearch-project/index-management#1638):

- Add the new `updateable` filter parameter.
- Update `ref_path` to resolve under `<OS_PATH_CONF>` directly (was
  `<OS_PATH_CONF>/analyzers/`) and allow forward slashes for nested
  paths; add an upgrade note for users coming from 3.6.
- Rename "Package-based dictionary loading" to "Custom dictionary
  loading with ref_path" and refresh examples to use the new layout.
- Add a "Hot-reloading Hunspell dictionaries" section covering the
  `updateable` + `_refresh_search_analyzers?reload_cached_resources=true`
  workflow.
- Document the new `reload_cached_resources` query parameter on the
  Refresh search analyzer API page.

Signed-off-by: shayush622 <ayush5267@gmail.com>

* Doc review

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Apply suggestion from @kolchfa-aws

Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

---------

Signed-off-by: shayush622 <ayush5267@gmail.com>
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Co-authored-by: Fanit Kolchina <kolchfa@amazon.com>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Arya Soni <aryasoni98@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Doc review PR: Doc review in progress release-notes PR: Include this PR in the automated release notes v3.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants