For phonetic, stem and relevance return no operator
authorDennis Schafroth <dennis@indexdata.com>
Wed, 4 Nov 2009 14:42:50 +0000 (15:42 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 4 Nov 2009 14:42:50 +0000 (15:42 +0100)
Was returning questionmarks

src/rpn2cql.c

index 1fa9aa3..2187838 100644 (file)
@@ -75,18 +75,18 @@ static const char *lookup_relation_index_from_attr(Z_AttributeList *attributes)
                         return ">"; 
                     case Z_ProximityOperator_Prox_notEqual: 
                         return "<>"; 
                         return ">"; 
                     case Z_ProximityOperator_Prox_notEqual: 
                         return "<>"; 
-
-                    /* phonetic */
+                                                
                     case 100: 
                     case 100: 
-                        return "??"; 
+                        /* phonetic is not supported in CQL */
+                        return 0; 
 
 
-                        /* stem */
                     case 101: 
                     case 101: 
-                        return "??"; 
+                        /* stem is not supported in CQL */
+                        return 0; 
 
 
-                        /* relevance */
                     case 102: 
                     case 102: 
-                        return "??"; 
+                        /* relevance is not supported in CQL ?*/
+                        return 0; 
                 otherwise: 
                         /* Invalid relation */
                         return 0;
                 otherwise: 
                         /* Invalid relation */
                         return 0;