Skip to content

use "#" instead of "+" as the document type variant separator#264

Merged
hugowetterberg merged 2 commits into
mainfrom
feature/variant-separator-change
Mar 6, 2026
Merged

use "#" instead of "+" as the document type variant separator#264
hugowetterberg merged 2 commits into
mainfrom
feature/variant-separator-change

Conversation

@hugowetterberg
Copy link
Copy Markdown
Contributor

The "+" separator for document type variants (e.g. "core/article+template") collides with existing article meta document types like "core/article+meta" where "+" is already part of the type name.

Switch to "#" as the variant separator, borrowing from URL fragment semantics of "same resource, but different view". The index name mapping is unchanged: "core/article#template" still becomes "core_article--template" in OpenSearch.

Updates the revisor dependency to v0.11.1-pre1 which uses the new separator (ttab/revisor#8).

The "+" separator for document type variants (e.g. "core/article+template")
collides with existing article meta document types like "core/article+meta"
where "+" is already part of the type name.

Switch to "#" as the variant separator, borrowing from URL fragment semantics
of "same resource, but different view". The index name mapping is unchanged:
"core/article#template" still becomes "core_article--template" in OpenSearch.

Updates the revisor dependency to v0.11.1-pre1 which uses the new separator
(ttab/revisor#8).
@hugowetterberg hugowetterberg merged commit f108a6b into main Mar 6, 2026
2 checks passed
@hugowetterberg hugowetterberg deleted the feature/variant-separator-change branch March 6, 2026 07:07
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