Skip to content

Commit

Permalink
Merge pull request FriendsOfSymfony#1089 from ludovicbret/master
Browse files Browse the repository at this point in the history
RawPartialResults compatibility with elastic 2.x => test for facets
  • Loading branch information
XWB committed May 30, 2016
2 parents 5f09daa + 6641805 commit d34946b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Paginator/RawPartialResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getTotalHits()
*/
public function getFacets()
{
if ($this->resultSet->hasFacets()) {
if (method_exists($this->resultSet, 'getFacets') && $this->resultSet->hasFacets()) {
return $this->resultSet->getFacets();
}

Expand Down

0 comments on commit d34946b

Please sign in to comment.