diff --git a/classes/ezsolrdoc.php b/classes/ezsolrdoc.php index 7f7fb5b1..79432913 100644 --- a/classes/ezsolrdoc.php +++ b/classes/ezsolrdoc.php @@ -118,7 +118,9 @@ function docToXML() if ($this->DocBoost !== null && is_numeric( $this->DocBoost ) ) { - $this->DomRootElement->setAttribute( 'boost', $this->DocBoost ); + // This will force the '.' as decimal separator and not depend on the locale + $docBoost = sprintf('%F',$this->DocBoost); + $this->DomRootElement->setAttribute( 'boost', $docBoost ); } foreach ($this->Doc as $name => $field) { @@ -155,4 +157,4 @@ function docToXML() } -?> \ No newline at end of file +?>