From: Dennis Schafroth Date: Wed, 11 Sep 2013 12:14:49 +0000 (+0200) Subject: Fix return correct relation when not using configuration file X-Git-Tag: v4.2.66~1^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=883245e48ad6e5735ab73884e18dc6cb5c297c86;p=yaz-moved-to-github.git Fix return correct relation when not using configuration file --- diff --git a/src/rpn2solr.c b/src/rpn2solr.c index 221e64b..7fe0797 100644 --- a/src/rpn2solr.c +++ b/src/rpn2solr.c @@ -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: