Fix return correct relation when not using configuration file
authorDennis Schafroth <dennis@indexdata.com>
Wed, 11 Sep 2013 12:14:49 +0000 (14:14 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 11 Sep 2013 12:14:49 +0000 (14:14 +0200)
src/rpn2solr.c

index 221e64b..7fe0797 100644 (file)
@@ -69,15 +69,15 @@ static const char *lookup_relation_index_from_attr(Z_AttributeList *attributes)
                 {
                     /* Unsure on whether this is the relation attribute constants? */
                 case Z_ProximityOperator_Prox_lessThan:
-                    return 0;
+                    return "<";
                 case Z_ProximityOperator_Prox_lessThanOrEqual:
-                    return 0;
+                    return "le";
                 case Z_ProximityOperator_Prox_equal:
                     return ":";
                 case Z_ProximityOperator_Prox_greaterThanOrEqual:
-                    return 0;
+                    return "ge";
                 case Z_ProximityOperator_Prox_greaterThan:
-                    return 0;
+                    return ">";
                 case Z_ProximityOperator_Prox_notEqual:
                     return 0;
                 case 100: