solr_attr->close = "]";
}
else if (!strcmp(relation, "ge")) {
- solr_attr->is_range = 3;
+ solr_attr->is_range = 4;
solr_attr->begin = "[";
solr_attr->close = " TO *]";
}
else if (!strcmp(relation, ">")) {
- solr_attr->is_range = 4;
+ solr_attr->is_range = 5;
solr_attr->begin = "{";
solr_attr->close = " TO *]";
}
solr_attr_right->is_range &&
!strcmp(solr_attr_left->index, solr_attr_right->index))
{
- if (solr_attr_left->is_range >= 3 && solr_attr_right->is_range <= 2)
+ if (solr_attr_left->is_range > 3 && solr_attr_right->is_range < 3)
return solr_write_range(pr, client_data, solr_attr_left, solr_attr_right);
- else if (solr_attr_left->is_range <= 2 && solr_attr_right->is_range >= 2)
+ else if (solr_attr_left->is_range < 3 && solr_attr_right->is_range > 3)
return solr_write_range(pr, client_data, solr_attr_right, solr_attr_left);
}
solr_write_structure(pr, client_data, solr_attr_left);