Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use separate indexes for each document type #1308

Merged
merged 7 commits into from
Nov 4, 2024
Merged

Conversation

haarg
Copy link
Member

@haarg haarg commented Oct 30, 2024

The production servers now have aliases in place to allow using separate "indexes" for each type. For development, we're creating the indexes so splitting them is no problem.

Removes any handling of aliases, since that those are a concern outside the API.

Includes various other cleanups to the mapping.

haarg added 7 commits October 30, 2024 01:58
Reformat to match output of jq -S --indent 4. Clean up quoting of
booleans and numbers. Improve structure of settings.
Many parts of the Script role were only used by the mapping script or
the purge script. Move them to the scripts themselves.
Aliases are an operational thing. They aren't something the code needs
to care about. The mapping script is used for development and testing,
but not really appropriate for production anymore. It can just create
the indexes, without any aliases.
In development, we're creating all of the indexes as needed, so we can
name them anything.

In production, there are now aliases for each document type, so we can
use the split names even though the real index is still shared.
@haarg haarg merged commit 141e045 into master Nov 4, 2024
2 checks passed
@haarg haarg deleted the haarg/es-split-index branch November 4, 2024 08:19
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