Add ocl index commands for ES reindexing#8
Open
jamlung-ri wants to merge 1 commit into
Open
Conversation
Introduces `ocl index` command group covering all reindex endpoints available in the OCL API: source-scoped concept/mapping reindex (requires source ownership), collection expansion concept/mapping reindex (admin only), and global ES admin operations (rebuild, populate, batch resource reindex). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ocl index source concepts OWNER SOURCEandocl index source mappings OWNER SOURCE— trigger reindexing for a source's concepts or mappings (requires source ownership, not superadmin)ocl index expansion concepts/mappings OWNER COLLECTION VERSION EXPANSION— reindex a collection expansion's resources (admin only)ocl index rebuild,ocl index populate, andocl index resource RESOURCE— admin-level global ES index managementAPI endpoints covered
index source conceptsPOST /{owner_type}/{owner}/sources/{source}/[{version}/]concepts/indexes/index source mappingsPOST /{owner_type}/{owner}/sources/{source}/[{version}/]mappings/indexes/index expansion conceptsPOST /…/expansions/{expansion}/concepts/index/index expansion mappingsPOST /…/expansions/{expansion}/mappings/index/index rebuildPOST /indexes/apps/rebuild/index populatePOST /indexes/apps/populate/index resource RESOURCEPOST /indexes/resources/{resource}/Test plan
ocl index source concepts WHO CIEL— triggers concept reindex, returns task IDocl index source mappings WHO CIEL --version v2025-04-03— scoped to a versionocl index source concepts WHO CIEL --single-batch --no-parallelocl index rebuild— admin token required, returns taskocl index resource concepts --uri /orgs/WHO/— admin batch reindexocl index resource concepts(no filter) — should print usage errorocl index --help,ocl index source --help,ocl index expansion --help🤖 Generated with Claude Code