Skip to content

Triggering Re index through Commit Messages

William Panting edited this page Sep 9, 2015 · 3 revisions

One can trigger GSearch re-indexes via puppet by placing one of two magic strings in their commit message.

  • [sys update-index] will simply restart tomcat and trigger a reindex
  • [sys delete-index] will delete the Solr index restart Tomcat and trigger a reindex

e.g. git commit -a -m '[sys delete-index] for collection indexing'

When puppet runs it will check each new(to the local repo) commit's message for an instance of these strings and will trigger the appropriate action.