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

Reindex commands #264

Closed
krystian-panek-vmltech opened this issue Aug 22, 2024 · 0 comments · Fixed by #265
Closed

Reindex commands #264

krystian-panek-vmltech opened this issue Aug 22, 2024 · 0 comments · Fixed by #265

Comments

@krystian-panek-vmltech
Copy link
Contributor

krystian-panek-vmltech commented Aug 22, 2024

imagine

sh aemw oak index reindex-batch
sh aemw oak index reindex --name "fragments"
sh aemw oak index list

and

sh aemw pkg deploy --file "mysite-live-content.zip"
sh aemw pkg deploy --file "mysite-indexes.zip"
sh aemw oak index reindex-batch --batch-id "mysite"

note that --reason need to be specified to make reindex-all command idempotent

technical notes:

  • listing indexes available via URL: http://localhost:4502/crx/server/crx.default/jcr:root/oak:index.1.json
  • reindexing done by changing property /oak:index/${name}[reindex=true] then awaiting false again when completed
  • --batch-id allows to reindex only once after e.g installing content package and new indexes; AEMC persists the index names to determine if reindexing should be done again
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 a pull request may close this issue.

1 participant