X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Frpn2solr.c;h=89b8b9163478eb5c864661b6ea84cc9e28d27a77;hb=4f2a5c81a0efcee0fcd92bb89998126ee5dfd8e2;hp=6390ebb5eeb4e8cb8a29556fe6bc513a12d5c4dc;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35;p=yaz-moved-to-github.git diff --git a/src/rpn2solr.c b/src/rpn2solr.c index 6390ebb..89b8b91 100644 --- a/src/rpn2solr.c +++ b/src/rpn2solr.c @@ -184,7 +184,10 @@ static int checkForTruncation(int flag, Z_AttributeList *attributes) if (truncation <= 3) return ((int) truncation & flag); } - /* Complex: Shouldn't happen */ + else if (ae->which == Z_AttributeValue_complex) { + //yaz_log(YLOG_DEBUG, "Z_Attribute_complex"); + /* Complex: Shouldn't happen */ + } } } /* No truncation or unsupported */ @@ -192,11 +195,11 @@ static int checkForTruncation(int flag, Z_AttributeList *attributes) }; static int checkForLeftTruncation(Z_AttributeList *attributes) { - return checkForTruncation(1, attributes); + return checkForTruncation(2, attributes); } static int checkForRightTruncation(Z_AttributeList *attributes) { - return checkForTruncation(2, attributes); + return checkForTruncation(1, attributes); }; static int rpn2solr_simple(solr_transform_t ct,