diff --git a/classes/ezfsolrdocumentfieldname.php b/classes/ezfsolrdocumentfieldname.php index 7f7faaeb..913b44aa 100644 --- a/classes/ezfsolrdocumentfieldname.php +++ b/classes/ezfsolrdocumentfieldname.php @@ -131,6 +131,7 @@ static function getPostFix( $fieldType ) 'tlong' => 'tl', 'tdate' => 'tdt', 'geopoint' => 'gpt', + 'location' => 'loc', 'geohash' => 'gh', 'mstring' => 'ms', 'mtext' => 'mt', diff --git a/classes/ezsolrdoc.php b/classes/ezsolrdoc.php index 7f7fb5b1..3761641c 100644 --- a/classes/ezsolrdoc.php +++ b/classes/ezsolrdoc.php @@ -118,7 +118,7 @@ function docToXML() if ($this->DocBoost !== null && is_numeric( $this->DocBoost ) ) { - $this->DomRootElement->setAttribute( 'boost', $this->DocBoost ); + $this->DomRootElement->setAttribute( 'boost', number_format( $this->DocBoost, 2, '.', '' ) ); } foreach ($this->Doc as $name => $field) { diff --git a/java/solr/ezp-default/conf/schema.xml b/java/solr/ezp-default/conf/schema.xml index 72004c94..12e357dd 100644 --- a/java/solr/ezp-default/conf/schema.xml +++ b/java/solr/ezp-default/conf/schema.xml @@ -694,6 +694,9 @@ + + +