/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
-
/**
* \file
* \brief Implements RPN to SOLR conversion
- *
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <assert.h>
#include <stdlib.h>
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 */
};
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,