Permalink
Browse files

Merge pull request #354 from kostiklv/tie-breaker-fix-20

Fixed tie_breaker in QueryString to be float
  • Loading branch information...
2 parents 608f88c + 20d6574 commit fdcbd0d64f5dde05a6cc107ecc65a5fd5b7f490e @ruflin committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Elastica/Query/QueryString.php
@@ -240,7 +240,7 @@ public function setUseDisMax($value = true)
*/
public function setTieBreaker($tieBreaker = 0)
{
- return $this->setParam('tie_breaker', (int) $tieBreaker);
+ return $this->setParam('tie_breaker', (float) $tieBreaker);
}
/**

0 comments on commit fdcbd0d

Please sign in to comment.