Skip to content

Commit

Permalink
Upgrade CirrusSearch metastore before (re)indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontalvo3 committed Oct 16, 2018
1 parent 69b5169 commit 1b27616
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/roles/mediawiki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@
# when: not es_do_upgrade_stat.stat.exists



- name: Verify metastore index upgraded
shell: WIKI={{ list_of_wikis[0] }} php /opt/htdocs/mediawiki/extensions/CirrusSearch/maintenance/metastore.php --upgrade
run_once: true

# Wikis are totally built at this point, but SMW and search need rebuilding
# FIXME #811: Will this work when controller is not an app server?
Expand All @@ -469,11 +471,6 @@
tags:
- search-index

# FIXME: Does this need to be run on all wikis or just one.
- name: Verify metastore index upgraded
shell: WIKI={{ list_of_wikis[0] }} php /opt/htdocs/mediawiki/extensions/CirrusSearch/maintenance/metastore.php --upgrade
run_once: true

- name: "(Re-)build SemanticMediaWiki data for: {{ wikis_to_rebuild_data | join(', ') }}"
shell: "bash {{ m_deploy }}/smw-rebuild-all.sh \"{{ wikis_to_rebuild_data | join(' ') }}\""
when: (docker_skip_tasks is not defined or not docker_skip_tasks) and (wikis_to_rebuild_data|length > 0)
Expand Down

0 comments on commit 1b27616

Please sign in to comment.