The latest note on the matter… Barton, good work on highlighting this issue. It was indeed a bug in YAZ, and it’s one that Indexdata fixed just 35 hours ago: <http://git.indexdata.com/?p=yaz.git;a=commit;h=31596bdcae098f8acea695d44c44ee5f646b4c1f> http://git.indexdata.com/?p=yaz.git;a=commit;h=31596bdcae098f8acea695d44c44e... So version 5.15.0 is the latest version of YAZ. I haven’t actually tested the fix yet, but the key problem was with the 2=102 relevance relation attribute incorrectly overriding the relation attributes created by r=o/r=r in the CCL2RPN conversion. The error message that followed were due to the relevance 2=102 attribute being incompatible with numeric indexes. I talked to Adam Dickmeiss from Indexdata, and he said that relevance works with every query structure except 4=107 (zebra local number) and 4=109 (numeric strings/indexes). In those cases, he suggests using r=o/r=r, and if you look at ccl.properties… we indeed do add r=o for st-numeric… so that’s OK. He did suggest that he might add support for relevance on numeric indexes, but not sure about that one. Barton: I don’t think you’re going to be able to add lexile searching to the advanced search without making a workaround. After all, even with a new version of YAZ released, it’s not going to be available via any package managers yet… and it could break things for people with a version of YAZ less than 5.15.0… David Cook Systems Librarian Prosentient Systems 72/330 Wattle St, Ultimo, NSW 2007 From: koha-devel-bounces@lists.koha-community.org [mailto:koha-devel-bounces@lists.koha-community.org] On Behalf Of Barton Chittenden Sent: Friday, 6 November 2015 3:47 AM To: Koha-devel <koha-devel@lists.koha-community.org> Subject: [Koha-devel] Searching numeric ranges I am working on searching lexile number ranges. ccl.properties shows lex 1=9903 r=r The 'r=r' bit means that I should be able to search using a numeric range separated by a dash, e.g. 500-600 Should return any numeric results from 500 to 600. The following query works: cgi-bin/koha/catalogue/search.pl?q=ccl%3Dlex%2Cst-numeric%3D500-600 <http://search.pl?q=ccl%3Dlex%2Cst-numeric%3D500-600> However, when I try adding that as an item in the search menu, as follows: $(document).ready(function(){ //add lexile to search pull downs $("select[name='idx']").append("<option value='lex,st-numeric'>Lexile (e.g. 600 or 550-650 )</option>"); }); That gets munged... the url reads cgi-bin/koha/catalogue/search.pl?idx=lex%2Cst-numeric <http://search.pl?idx=lex%2Cst-numeric&q=500-600> &q=500-600 And I get the following message: No results found No results match your search for 'lex,st-numeric: 500-600'. --Barton