X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frpn2solr.c;h=c9638d03221d8ba7d3e7f0ccdd8e7541139d5dc4;hp=664ce2d08c95d9075dbbf277ca59ca65bce5bbe8;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hpb=c4aebcfe8750bd421de0c06820fdddb4e4443a11 diff --git a/src/rpn2solr.c b/src/rpn2solr.c index 664ce2d..c9638d0 100644 --- a/src/rpn2solr.c +++ b/src/rpn2solr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -68,27 +68,27 @@ static const char *lookup_relation_index_from_attr(Z_AttributeList *attributes) switch (*relation) { /* Unsure on whether this is the relation attribute constants? */ - case Z_ProximityOperator_Prox_lessThan: + case Z_ProximityOperator_Prox_lessThan: return 0; - case Z_ProximityOperator_Prox_lessThanOrEqual: + case Z_ProximityOperator_Prox_lessThanOrEqual: return 0; - case Z_ProximityOperator_Prox_equal: + case Z_ProximityOperator_Prox_equal: return ":"; - case Z_ProximityOperator_Prox_greaterThanOrEqual: + case Z_ProximityOperator_Prox_greaterThanOrEqual: return 0; - case Z_ProximityOperator_Prox_greaterThan: + case Z_ProximityOperator_Prox_greaterThan: return 0; - case Z_ProximityOperator_Prox_notEqual: + case Z_ProximityOperator_Prox_notEqual: return 0; - case 100: + case 100: /* phonetic is not implemented*/ - return 0; - case 101: + return 0; + case 101: /* stem is not not implemented */ - return 0; - case 102: + return 0; + case 102: /* relevance is supported in SOLR, but not implemented yet */ - return 0; + return 0; default: /* Invalid relation */ return 0; @@ -116,7 +116,7 @@ static int rpn2solr_attr(solr_transform_t ct, index = lookup_index_from_string_attr(attributes); /* Attempt to fix bug #2978: Look for a relation attribute */ - if (!relation) + if (!relation) relation = lookup_relation_index_from_attr(attributes); if (!index) @@ -258,7 +258,7 @@ static int rpn2solr_simple(solr_transform_t ct, i++; if (strchr(SOLR_SPECIAL, sterm[i])) wrbuf_putc(w, '\\'); - wrbuf_putc(w, sterm[i]); + wrbuf_putc(w, sterm[i]); } else if (sterm[i] == '?' && trunc == 104) {