Skip to content

Minisearch indexes not support rewrites #4986

@s3xysteak

Description

@s3xysteak

Describe the bug

If using rewrites and do not use the default directory structure, minisearch indexes cannot correctly build. Root language will search all pages in different langs and other langs cannot search anything in rewrites.

Reproduction

https://stackblitz.com/edit/vite-h8qkebmd

Expected behavior

Minisearch indexes can correctly work. Different language can have difffect indexes with rewrites.

System Info

[email protected]

  System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
    Memory: 10.41 GB / 31.93 GB
  Binaries:
    Node: 22.17.0 - C:\Users\miko\AppData\Local\fnm_multishells\27788_1760431032341\node.EXE
    Yarn: 1.22.22 - C:\Users\miko\AppData\Local\fnm_multishells\27788_1760431032341\yarn.CMD
    npm: 11.5.2 - C:\Users\miko\AppData\Local\fnm_multishells\27788_1760431032341\npm.CMD
    pnpm: 9.15.9 - C:\Users\miko\AppData\Local\fnm_multishells\27788_1760431032341\pnpm.CMD
  Browsers:
    Chrome: 141.0.7390.77
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.19041.5794

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions