Skip to content

Change PathAnchor behavior for elasticsearch-sudachi#361

Merged
hayashi-mas-wap merged 3 commits into
developfrom
feature/pathanchor-none
May 22, 2026
Merged

Change PathAnchor behavior for elasticsearch-sudachi#361
hayashi-mas-wap merged 3 commits into
developfrom
feature/pathanchor-none

Conversation

@hayashi-mas-wap
Copy link
Copy Markdown
Contributor

@hayashi-mas-wap hayashi-mas-wap commented May 21, 2026

Current PathAnchor tries to see files during the resolution and it makes elasticsearch (v8.18+) cause entitlement error.

This PR includes:

  • let PathAnchor.Classpath loads data via class loader, instead of URL.
    • This causes the problem in elasticsearch
  • make PathAnchor.None does nothing, instead of searching CWD.
    • to search CWD, filesystem() should be used.
  • new implementation for PathAnchor.Chain.resource which always uses correct child anchor.

@hayashi-mas-wap hayashi-mas-wap force-pushed the feature/pathanchor-none branch from 0736b57 to 5231488 Compare May 21, 2026 03:00
@hayashi-mas-wap hayashi-mas-wap force-pushed the feature/pathanchor-none branch from 8bfafda to 74a11dc Compare May 21, 2026 05:57
@hayashi-mas-wap hayashi-mas-wap marked this pull request as ready for review May 21, 2026 05:57
@hayashi-mas-wap hayashi-mas-wap merged commit 228d120 into develop May 22, 2026
1 check passed
@hayashi-mas-wap hayashi-mas-wap deleted the feature/pathanchor-none branch May 22, 2026 06:36
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