X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Frpn2solr.c;h=4a2c5e42c4e2286d2d44069e915badd662441105;hb=a00add15f1d9f9a33d8f6fe2e5f3cb04171d8aa1;hp=c72b11a467b6aba148be15e5baecbe4dc1bea7a3;hpb=30257fdfae108b95848ef0ccbc4cac09466a60d8;p=yaz-moved-to-github.git diff --git a/src/rpn2solr.c b/src/rpn2solr.c index c72b11a..4a2c5e4 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: @@ -233,7 +233,6 @@ static int rpn2solr_simple(solr_transform_t ct, Odr_int trunc = get_truncation(apt); wrbuf_rewind(w); - ret = rpn2solr_attr(ct, apt->attributes, w, solr_attr); if (trunc == 0 || trunc == 1 || trunc == 100 || trunc == 104)