Author: pb
Date: Wed Feb 11 18:35:11 2009
New Revision: 3572

Log:
- Corrected bug #014435: (was: Allow for RANGE queries, but actually a bug 
added extra quotes invalidating the range query expression)

Modified:
    ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php
    
ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1
Modified: ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php
==============================================================================
--- ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php (original)
+++ ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php Wed Feb 11 18:35:11 2009
@@ -552,12 +552,14 @@
             {
                 foreach( $value as $subValue )
                 {
-                    $filterQueryList[] = $baseName . ':' . self::quoteIfNeeded( $subValue );
+                    //$filterQueryList[] = $baseName . ':' . self::quoteIfNeeded( $subValue );
+                    $filterQueryList[] = $baseName . ':' . $subValue;
                 }
             }
             else
             {
-                $filterQueryList[] = $baseName . ':' . self::quoteIfNeeded( $value );
+                //$filterQueryList[] = $baseName . ':' . self::quoteIfNeeded( $value );
+                $filterQueryList[] = $baseName . ':' . $value;
             }
         }
 
@@ -574,7 +576,7 @@
     static function quoteIfNeeded( $value )
     {
         $quote = '';
-        if ( strpos( $value, ' ' ) !== false )
+        if ( strpos( $value, ' ' ) !== false || strpos())
         {
             $quote = '"';
             if ( strpos( trim( $value ), '(' ) === 0 )

Modified: ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1
==============================================================================
--- ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1 (original)
+++ ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1 Wed Feb 11 18:35:11 2009
@@ -22,4 +22,5 @@
 - changed error into normal debug message when facet fields are missing
 - implemented correct implementation for bug #013889: /bin/php/updatesearchindexsolr.php doesn't index all objects, using array() as limitation instead of false
 - changed search heuristic that should not be there so only string/text fields are searched
-- corrected integer declaration to int in schema.xml 
+- corrected integer declaration to int in schema.xml
+- corrected bug #014435: Allow for RANGE queries (quotes were added, creating an invalid expression for range queries)

_______________________________________________
svn-eZFind mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-ezfind

Reply via email to