Skip to content

Commit

Permalink
Merge pull request #87 from einorler/field_fix
Browse files Browse the repository at this point in the history
Changed field names in ElasticsearchStorage
  • Loading branch information
saimaz authored Jul 27, 2016
2 parents 5267cc1 + 24fc27b commit 1c209a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Storage/ElasticsearchStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public function read($locales = [], $domains = [])
->addQuery(new MatchAllQuery());

if (!empty($locales)) {
$search->addFilter(new TermsFilter('locale', $locales));
$search->addFilter(new TermsFilter('messages.locale', $locales));
}

if (!empty($domains)) {
$search->addFilter(new TermsFilter('domain', $domains));
$search->addFilter(new TermsFilter('messages.domain', $domains));
}

return $this->getRepository()->execute($search, Repository::RESULTS_OBJECT);
Expand Down

0 comments on commit 1c209a9

Please sign in to comment.