From: David Cook Date: Wed, 6 Feb 2013 02:49:28 +0000 (+1100) Subject: Bug 9552 - BIB1 Relation "Greater Than" Attribute Not Mapped Properly in CCL.Properties X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=eb4ebab07ca52143f8438309c394317fb479a6f6 Bug 9552 - BIB1 Relation "Greater Than" Attribute Not Mapped Properly in CCL.Properties Currently, you can use "lt,le,eq,ge" in your CCL query to handle "lesser than, lesser or equal to, equal to, greater than or equal to" relationships. The only one missing is "gt" (Bib1 2=5). The mappings are also off "ne, phonetic, stem", but those are Bib1 attributes that Zebra doesn't support, so that's not really relevant. To test: [1] Before applying the patch, try the following query in the OPAC: pubdate,gt:2006 You should get "no results found". [2] After applying the patch (and note that ccl.properties will usually need to be installed in the run-time Zebra configuration directory), try the same search. This time, you could get back the titles whose publication date is after 2006. Signed-off-by: Galen Charlton Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index f93de961db..a5de0107ca 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -867,9 +867,10 @@ lt 2=1 le 2=2 eq 2=3 ge 2=4 -ne 2=5 -phonetic 2=6 -stem 2=100 +gt 2=5 +ne 2=6 +phonetic 2=100 +stem 2=101 relevance 2=102 rk 2=102 rank relevance