{"id":18811119,"url":"https://github.com/ojung/migriere-es","last_synced_at":"2026-05-18T02:35:24.211Z","repository":{"id":57297000,"uuid":"85870138","full_name":"ojung/migriere-es","owner":"ojung","description":"Migrate elastic search mappings.","archived":false,"fork":false,"pushed_at":"2017-10-08T12:01:25.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-02T15:41:05.413Z","etag":null,"topics":["elasticsearch","mappings","migration"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ojung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-22T19:54:21.000Z","updated_at":"2024-09-17T17:39:53.000Z","dependencies_parsed_at":"2022-09-01T13:01:52.463Z","dependency_job_id":null,"html_url":"https://github.com/ojung/migriere-es","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ojung/migriere-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojung%2Fmigriere-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojung%2Fmigriere-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojung%2Fmigriere-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojung%2Fmigriere-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ojung","download_url":"https://codeload.github.com/ojung/migriere-es/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojung%2Fmigriere-es/sbom","scorecard":{"id":703859,"data":{"date":"2025-08-11","repo":{"name":"github.com/ojung/migriere-es","commit":"a202dbb88c91436317733790db983a634e81dc82"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T05:54:30.222Z","repository_id":57297000,"created_at":"2025-08-22T05:54:30.223Z","updated_at":"2025-08-22T05:54:30.223Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","mappings","migration"],"created_at":"2024-11-07T23:24:30.394Z","updated_at":"2026-05-18T02:35:24.196Z","avatar_url":"https://github.com/ojung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elastic search migrations\n\nSince the mappings can be subject to change and according to\n[the elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#updating-field-mappings)\nyou can not change the mapping of a field, only add or remove (multi-)fields, I decided to write a tool that helps me migrate (reindex) my\ndata.\nBasis for the workflow in this tool is a method from the elasticsearch [blog](https://www.elastic.co/blog/changing-mapping-with-zero-downtime) from 2013.\nBasically instead of calling your index `my-index` this script will call your index `my-index_v0` with a new version each time you migrate and maintain an\nalias for the latest version called `my-index`.\n\n## Limitations\nI know this tool is propably not helpful for people with massive indices since it copies all data. It would be possible to delete the old version, but\njust adding new multi fields with new mappings is a better choice.\nThe script helped me a lot though in the prototyping phase of projects to not have too many multi fields.\n\n## Usage\n```\n  Usage: migriere-es [options]\n\n  Options:\n\n    -h, --help                  output usage information\n    -V, --version               output the version number\n    -i, --index \u003cindex\u003e         The index name.\n    -m, --mappings \u003cmappings\u003e   A json file with mappings.\n    -n, --new                   Create new index without reindexing.\n    -u, --url [url]             An url to a elasticsearch node. Defaults to `localhost:9200`.\n    -l, --log-level [loglevel]  The log level. Defaults to `error`. Set this option to`debug` to see the queries this script performs.\n```\n\n## Install\n`npm install -g migriere-es` (Requires node with async/await support)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojung%2Fmigriere-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojung%2Fmigriere-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojung%2Fmigriere-es/lists"}