projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
facetSort, facetStart honored.
[yaz-moved-to-github.git]
/
src
/
rpn2solr.c
diff --git
a/src/rpn2solr.c
b/src/rpn2solr.c
index
c72b11a
..
4a2c5e4
100644
(file)
--- 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:
{
/* Unsure on whether this is the relation attribute constants? */
case Z_ProximityOperator_Prox_lessThan:
- return 0;
+ return "<";
case Z_ProximityOperator_Prox_lessThanOrEqual:
case Z_ProximityOperator_Prox_lessThanOrEqual:
- return 0;
+ return "le";
case Z_ProximityOperator_Prox_equal:
return ":";
case Z_ProximityOperator_Prox_greaterThanOrEqual:
case Z_ProximityOperator_Prox_equal:
return ":";
case Z_ProximityOperator_Prox_greaterThanOrEqual:
- return 0;
+ return "ge";
case Z_ProximityOperator_Prox_greaterThan:
case Z_ProximityOperator_Prox_greaterThan:
- return 0;
+ return ">";
case Z_ProximityOperator_Prox_notEqual:
return 0;
case 100:
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);
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)
ret = rpn2solr_attr(ct, apt->attributes, w, solr_attr);
if (trunc == 0 || trunc == 1 || trunc == 100 || trunc == 104)