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

Fixed reindex only published article for live #136

Merged
merged 1 commit into from
Apr 5, 2017

Conversation

wachterjohannes
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets none
Related issues/PRs none
License MIT
Documentation PR none

What's in this PR?

This PR fixes the reindex command to only reindex published articles.

$id = 'sulu_article.elastic_search.article_indexer';
if ($input->getOption('live')) {
$id = 'sulu_article.elastic_search.article_live_indexer';
$sql2 .= ' AND [i18n:en-state] = ' . WorkflowStage::PUBLISHED;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

locale missing

@alexander-schranz alexander-schranz merged commit bccd4f4 into sulu:master Apr 5, 2017
@wachterjohannes wachterjohannes deleted the hotfix/live-index branch April 5, 2017 14:41
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 this pull request may close these issues.

2 participants