From 883245e48ad6e5735ab73884e18dc6cb5c297c86 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 11 Sep 2013 14:14:49 +0200 Subject: [PATCH] Fix return correct relation when not using configuration file --- src/rpn2solr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 1.7.10.4