From 02a9df5e0ecae25b12b57b2b06a3ccc750777e36 Mon Sep 17 00:00:00 2001 From: xrow Date: Fri, 21 Nov 2014 03:02:18 +0100 Subject: [PATCH 1/3] - Added SOLR location support to client --- classes/ezfsolrdocumentfieldname.php | 1 + 1 file changed, 1 insertion(+) 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', From 4fc6ac54043f39bce1473d37a8838d7f6d2c99bf Mon Sep 17 00:00:00 2001 From: xrow Date: Fri, 21 Nov 2014 04:57:18 +0100 Subject: [PATCH 2/3] - Fixing update problem with certain locales --- classes/ezsolrdoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From ba11da54d87536daed7774103d883d10046c17f9 Mon Sep 17 00:00:00 2001 From: xrow Date: Sat, 22 Nov 2014 21:30:38 +0100 Subject: [PATCH 3/3] - Added location to schema --- java/solr/ezp-default/conf/schema.xml | 3 +++ 1 file changed, 3 insertions(+) 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 @@ + + +